<!DOCTYPE html>
<html lang="en" id="docs">
 <head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <title>lodash documentation</title>
  <link rel="stylesheet" href="_css/main.css?@cache1">
  <link rel="feed alternate" type="application/atom+xml" href="https://github.com/lodash/lodash/commits/master.atom">
  <!--[if lt IE 9]><script src="/_js/html5.js"></script><![endif]-->
 </head>
 <body>
<h1><a href="index.html">lodash</a> </h1>
<div class="toc-container">
<div>
<h2 class="first-heading"><code>Array</code></h2>
<ul>
<li><a href="#chunk"><code>_.<span class="me1">chunk</span></code></a></li>
<li><a href="#compact"><code>_.<span class="me1">compact</span></code></a></li>
<li><a href="#concat"><code>_.<span class="me1">concat</span></code></a></li>
<li><a href="#difference"><code>_.<span class="me1">difference</span></code></a></li>
<li><a href="#differenceBy"><code>_.<span class="me1">differenceBy</span></code></a></li>
<li><a href="#differenceWith"><code>_.<span class="me1">differenceWith</span></code></a></li>
<li><a href="#drop"><code>_.<span class="me1">drop</span></code></a></li>
<li><a href="#dropRight"><code>_.<span class="me1">dropRight</span></code></a></li>
<li><a href="#dropRightWhile"><code>_.<span class="me1">dropRightWhile</span></code></a></li>
<li><a href="#dropWhile"><code>_.<span class="me1">dropWhile</span></code></a></li>
<li><a href="#fill"><code>_.<span class="me1">fill</span></code></a></li>
<li><a href="#findIndex"><code>_.<span class="me1">findIndex</span></code></a></li>
<li><a href="#findLastIndex"><code>_.<span class="me1">findLastIndex</span></code></a></li>
<li><a href="#head" class="alias"><code>_.<span class="me1">first</span></code> → <code>head</code></a></li>
<li><a href="#flatten"><code>_.<span class="me1">flatten</span></code></a></li>
<li><a href="#flattenDeep"><code>_.<span class="me1">flattenDeep</span></code></a></li>
<li><a href="#flattenDepth"><code>_.<span class="me1">flattenDepth</span></code></a></li>
<li><a href="#fromPairs"><code>_.<span class="me1">fromPairs</span></code></a></li>
<li><a href="#head"><code>_.<span class="me1">head</span></code></a></li>
<li><a href="#indexOf"><code>_.<span class="me1">indexOf</span></code></a></li>
<li><a href="#initial"><code>_.<span class="me1">initial</span></code></a></li>
<li><a href="#intersection"><code>_.<span class="me1">intersection</span></code></a></li>
<li><a href="#intersectionBy"><code>_.<span class="me1">intersectionBy</span></code></a></li>
<li><a href="#intersectionWith"><code>_.<span class="me1">intersectionWith</span></code></a></li>
<li><a href="#join"><code>_.<span class="me1">join</span></code></a></li>
<li><a href="#last"><code>_.<span class="me1">last</span></code></a></li>
<li><a href="#lastIndexOf"><code>_.<span class="me1">lastIndexOf</span></code></a></li>
<li><a href="#pull"><code>_.<span class="me1">pull</span></code></a></li>
<li><a href="#pullAll"><code>_.<span class="me1">pullAll</span></code></a></li>
<li><a href="#pullAllBy"><code>_.<span class="me1">pullAllBy</span></code></a></li>
<li><a href="#pullAt"><code>_.<span class="me1">pullAt</span></code></a></li>
<li><a href="#remove"><code>_.<span class="me1">remove</span></code></a></li>
<li><a href="#reverse"><code>_.<span class="me1">reverse</span></code></a></li>
<li><a href="#slice"><code>_.<span class="me1">slice</span></code></a></li>
<li><a href="#sortedIndex"><code>_.<span class="me1">sortedIndex</span></code></a></li>
<li><a href="#sortedIndexBy"><code>_.<span class="me1">sortedIndexBy</span></code></a></li>
<li><a href="#sortedIndexOf"><code>_.<span class="me1">sortedIndexOf</span></code></a></li>
<li><a href="#sortedLastIndex"><code>_.<span class="me1">sortedLastIndex</span></code></a></li>
<li><a href="#sortedLastIndexBy"><code>_.<span class="me1">sortedLastIndexBy</span></code></a></li>
<li><a href="#sortedLastIndexOf"><code>_.<span class="me1">sortedLastIndexOf</span></code></a></li>
<li><a href="#sortedUniq"><code>_.<span class="me1">sortedUniq</span></code></a></li>
<li><a href="#sortedUniqBy"><code>_.<span class="me1">sortedUniqBy</span></code></a></li>
<li><a href="#tail"><code>_.<span class="me1">tail</span></code></a></li>
<li><a href="#take"><code>_.<span class="me1">take</span></code></a></li>
<li><a href="#takeRight"><code>_.<span class="me1">takeRight</span></code></a></li>
<li><a href="#takeRightWhile"><code>_.<span class="me1">takeRightWhile</span></code></a></li>
<li><a href="#takeWhile"><code>_.<span class="me1">takeWhile</span></code></a></li>
<li><a href="#union"><code>_.<span class="me1">union</span></code></a></li>
<li><a href="#unionBy"><code>_.<span class="me1">unionBy</span></code></a></li>
<li><a href="#unionWith"><code>_.<span class="me1">unionWith</span></code></a></li>
<li><a href="#uniq"><code>_.<span class="me1">uniq</span></code></a></li>
<li><a href="#uniqBy"><code>_.<span class="me1">uniqBy</span></code></a></li>
<li><a href="#uniqWith"><code>_.<span class="me1">uniqWith</span></code></a></li>
<li><a href="#unzip"><code>_.<span class="me1">unzip</span></code></a></li>
<li><a href="#unzipWith"><code>_.<span class="me1">unzipWith</span></code></a></li>
<li><a href="#without"><code>_.<span class="me1">without</span></code></a></li>
<li><a href="#xor"><code>_.<span class="me1">xor</span></code></a></li>
<li><a href="#xorBy"><code>_.<span class="me1">xorBy</span></code></a></li>
<li><a href="#xorWith"><code>_.<span class="me1">xorWith</span></code></a></li>
<li><a href="#zip"><code>_.<span class="me1">zip</span></code></a></li>
<li><a href="#zipObject"><code>_.<span class="me1">zipObject</span></code></a></li>
<li><a href="#zipObjectDeep"><code>_.<span class="me1">zipObjectDeep</span></code></a></li>
<li><a href="#zipWith"><code>_.<span class="me1">zipWith</span></code></a></li>
</ul>
</div>
<div>
<h2><code>Collection</code></h2>
<ul>
<li><a href="#countBy"><code>_.<span class="me1">countBy</span></code></a></li>
<li><a href="#forEach" class="alias"><code>_.<span class="me1">each</span></code> → <code>forEach</code></a></li>
<li><a href="#forEachRight" class="alias"><code>_.<span class="me1">eachRight</span></code> → <code>forEachRight</code></a></li>
<li><a href="#every"><code>_.<span class="me1">every</span></code></a></li>
<li><a href="#filter"><code>_.<span class="me1">filter</span></code></a></li>
<li><a href="#find"><code>_.<span class="me1">find</span></code></a></li>
<li><a href="#findLast"><code>_.<span class="me1">findLast</span></code></a></li>
<li><a href="#flatMap"><code>_.<span class="me1">flatMap</span></code></a></li>
<li><a href="#forEach"><code>_.<span class="me1">forEach</span></code></a></li>
<li><a href="#forEachRight"><code>_.<span class="me1">forEachRight</span></code></a></li>
<li><a href="#groupBy"><code>_.<span class="me1">groupBy</span></code></a></li>
<li><a href="#includes"><code>_.<span class="me1">includes</span></code></a></li>
<li><a href="#invokeMap"><code>_.<span class="me1">invokeMap</span></code></a></li>
<li><a href="#keyBy"><code>_.<span class="me1">keyBy</span></code></a></li>
<li><a href="#map"><code>_.<span class="me1">map</span></code></a></li>
<li><a href="#orderBy"><code>_.<span class="me1">orderBy</span></code></a></li>
<li><a href="#partition"><code>_.<span class="me1">partition</span></code></a></li>
<li><a href="#reduce"><code>_.<span class="me1">reduce</span></code></a></li>
<li><a href="#reduceRight"><code>_.<span class="me1">reduceRight</span></code></a></li>
<li><a href="#reject"><code>_.<span class="me1">reject</span></code></a></li>
<li><a href="#sample"><code>_.<span class="me1">sample</span></code></a></li>
<li><a href="#sampleSize"><code>_.<span class="me1">sampleSize</span></code></a></li>
<li><a href="#shuffle"><code>_.<span class="me1">shuffle</span></code></a></li>
<li><a href="#size"><code>_.<span class="me1">size</span></code></a></li>
<li><a href="#some"><code>_.<span class="me1">some</span></code></a></li>
<li><a href="#sortBy"><code>_.<span class="me1">sortBy</span></code></a></li>
</ul>
</div>
<div>
<h2><code>Date</code></h2>
<ul>
<li><a href="#now"><code>_.<span class="me1">now</span></code></a></li>
</ul>
</div>
<div>
<h2><code><span class="kw2">Function</span></code></h2>
<ul>
<li><a href="#after"><code>_.<span class="me1">after</span></code></a></li>
<li><a href="#ary"><code>_.<span class="me1">ary</span></code></a></li>
<li><a href="#before"><code>_.<span class="me1">before</span></code></a></li>
<li><a href="#bind"><code>_.<span class="me1">bind</span></code></a></li>
<li><a href="#bindKey"><code>_.<span class="me1">bindKey</span></code></a></li>
<li><a href="#curry"><code>_.<span class="me1">curry</span></code></a></li>
<li><a href="#curryRight"><code>_.<span class="me1">curryRight</span></code></a></li>
<li><a href="#debounce"><code>_.<span class="me1">debounce</span></code></a></li>
<li><a href="#defer"><code>_.<span class="me1">defer</span></code></a></li>
<li><a href="#delay"><code>_.<span class="me1">delay</span></code></a></li>
<li><a href="#flip"><code>_.<span class="me1">flip</span></code></a></li>
<li><a href="#memoize"><code>_.<span class="me1">memoize</span></code></a></li>
<li><a href="#negate"><code>_.<span class="me1">negate</span></code></a></li>
<li><a href="#once"><code>_.<span class="me1">once</span></code></a></li>
<li><a href="#overArgs"><code>_.<span class="me1">overArgs</span></code></a></li>
<li><a href="#partial"><code>_.<span class="me1">partial</span></code></a></li>
<li><a href="#partialRight"><code>_.<span class="me1">partialRight</span></code></a></li>
<li><a href="#rearg"><code>_.<span class="me1">rearg</span></code></a></li>
<li><a href="#rest"><code>_.<span class="me1">rest</span></code></a></li>
<li><a href="#spread"><code>_.<span class="me1">spread</span></code></a></li>
<li><a href="#throttle"><code>_.<span class="me1">throttle</span></code></a></li>
<li><a href="#unary"><code>_.<span class="me1">unary</span></code></a></li>
<li><a href="#wrap"><code>_.<span class="me1">wrap</span></code></a></li>
</ul>
</div>
<div>
<h2><code>Lang</code></h2>
<ul>
<li><a href="#castArray"><code>_.<span class="me1">castArray</span></code></a></li>
<li><a href="#clone"><code>_.<span class="me1">clone</span></code></a></li>
<li><a href="#cloneDeep"><code>_.<span class="me1">cloneDeep</span></code></a></li>
<li><a href="#cloneDeepWith"><code>_.<span class="me1">cloneDeepWith</span></code></a></li>
<li><a href="#cloneWith"><code>_.<span class="me1">cloneWith</span></code></a></li>
<li><a href="#eq"><code>_.<span class="me1">eq</span></code></a></li>
<li><a href="#gt"><code>_.<span class="me1">gt</span></code></a></li>
<li><a href="#gte"><code>_.<span class="me1">gte</span></code></a></li>
<li><a href="#isArguments"><code>_.<span class="me1">isArguments</span></code></a></li>
<li><a href="#isArray"><code>_.<span class="me1">isArray</span></code></a></li>
<li><a href="#isArrayBuffer"><code>_.<span class="me1">isArrayBuffer</span></code></a></li>
<li><a href="#isArrayLike"><code>_.<span class="me1">isArrayLike</span></code></a></li>
<li><a href="#isArrayLikeObject"><code>_.<span class="me1">isArrayLikeObject</span></code></a></li>
<li><a href="#isBoolean"><code>_.<span class="me1">isBoolean</span></code></a></li>
<li><a href="#isBuffer"><code>_.<span class="me1">isBuffer</span></code></a></li>
<li><a href="#isDate"><code>_.<span class="me1">isDate</span></code></a></li>
<li><a href="#isElement"><code>_.<span class="me1">isElement</span></code></a></li>
<li><a href="#isEmpty"><code>_.<span class="me1">isEmpty</span></code></a></li>
<li><a href="#isEqual"><code>_.<span class="me1">isEqual</span></code></a></li>
<li><a href="#isEqualWith"><code>_.<span class="me1">isEqualWith</span></code></a></li>
<li><a href="#isError"><code>_.<span class="me1">isError</span></code></a></li>
<li><a href="#isFinite"><code>_.<span class="me1">isFinite</span></code></a></li>
<li><a href="#isFunction"><code>_.<span class="me1">isFunction</span></code></a></li>
<li><a href="#isInteger"><code>_.<span class="me1">isInteger</span></code></a></li>
<li><a href="#isLength"><code>_.<span class="me1">isLength</span></code></a></li>
<li><a href="#isMap"><code>_.<span class="me1">isMap</span></code></a></li>
<li><a href="#isMatch"><code>_.<span class="me1">isMatch</span></code></a></li>
<li><a href="#isMatchWith"><code>_.<span class="me1">isMatchWith</span></code></a></li>
<li><a href="#isNaN"><code>_.<span class="me1">isNaN</span></code></a></li>
<li><a href="#isNative"><code>_.<span class="me1">isNative</span></code></a></li>
<li><a href="#isNil"><code>_.<span class="me1">isNil</span></code></a></li>
<li><a href="#isNull"><code>_.<span class="me1">isNull</span></code></a></li>
<li><a href="#isNumber"><code>_.<span class="me1">isNumber</span></code></a></li>
<li><a href="#isObject"><code>_.<span class="me1">isObject</span></code></a></li>
<li><a href="#isObjectLike"><code>_.<span class="me1">isObjectLike</span></code></a></li>
<li><a href="#isPlainObject"><code>_.<span class="me1">isPlainObject</span></code></a></li>
<li><a href="#isRegExp"><code>_.<span class="me1">isRegExp</span></code></a></li>
<li><a href="#isSafeInteger"><code>_.<span class="me1">isSafeInteger</span></code></a></li>
<li><a href="#isSet"><code>_.<span class="me1">isSet</span></code></a></li>
<li><a href="#isString"><code>_.<span class="me1">isString</span></code></a></li>
<li><a href="#isSymbol"><code>_.<span class="me1">isSymbol</span></code></a></li>
<li><a href="#isTypedArray"><code>_.<span class="me1">isTypedArray</span></code></a></li>
<li><a href="#isUndefined"><code>_.<span class="me1">isUndefined</span></code></a></li>
<li><a href="#isWeakMap"><code>_.<span class="me1">isWeakMap</span></code></a></li>
<li><a href="#isWeakSet"><code>_.<span class="me1">isWeakSet</span></code></a></li>
<li><a href="#lt"><code>_.<span class="me1">lt</span></code></a></li>
<li><a href="#lte"><code>_.<span class="me1">lte</span></code></a></li>
<li><a href="#toArray"><code>_.<span class="me1">toArray</span></code></a></li>
<li><a href="#toInteger"><code>_.<span class="me1">toInteger</span></code></a></li>
<li><a href="#toLength"><code>_.<span class="me1">toLength</span></code></a></li>
<li><a href="#toNumber"><code>_.<span class="me1">toNumber</span></code></a></li>
<li><a href="#toPlainObject"><code>_.<span class="me1">toPlainObject</span></code></a></li>
<li><a href="#toSafeInteger"><code>_.<span class="me1">toSafeInteger</span></code></a></li>
<li><a href="#toString"><code>_.<span class="me1">toString</span></code></a></li>
</ul>
</div>
<div>
<h2><code>Math</code></h2>
<ul>
<li><a href="#add"><code>_.<span class="me1">add</span></code></a></li>
<li><a href="#ceil"><code>_.<span class="me1">ceil</span></code></a></li>
<li><a href="#floor"><code>_.<span class="me1">floor</span></code></a></li>
<li><a href="#max"><code>_.<span class="me1">max</span></code></a></li>
<li><a href="#maxBy"><code>_.<span class="me1">maxBy</span></code></a></li>
<li><a href="#mean"><code>_.<span class="me1">mean</span></code></a></li>
<li><a href="#min"><code>_.<span class="me1">min</span></code></a></li>
<li><a href="#minBy"><code>_.<span class="me1">minBy</span></code></a></li>
<li><a href="#round"><code>_.<span class="me1">round</span></code></a></li>
<li><a href="#subtract"><code>_.<span class="me1">subtract</span></code></a></li>
<li><a href="#sum"><code>_.<span class="me1">sum</span></code></a></li>
<li><a href="#sumBy"><code>_.<span class="me1">sumBy</span></code></a></li>
</ul>
</div>
<div>
<h2><code>Number</code></h2>
<ul>
<li><a href="#clamp"><code>_.<span class="me1">clamp</span></code></a></li>
<li><a href="#inRange"><code>_.<span class="me1">inRange</span></code></a></li>
<li><a href="#random"><code>_.<span class="me1">random</span></code></a></li>
</ul>
</div>
<div>
<h2><code>Object</code></h2>
<ul>
<li><a href="#assign"><code>_.<span class="me1">assign</span></code></a></li>
<li><a href="#assignIn"><code>_.<span class="me1">assignIn</span></code></a></li>
<li><a href="#assignInWith"><code>_.<span class="me1">assignInWith</span></code></a></li>
<li><a href="#assignWith"><code>_.<span class="me1">assignWith</span></code></a></li>
<li><a href="#at"><code>_.<span class="me1">at</span></code></a></li>
<li><a href="#create"><code>_.<span class="me1">create</span></code></a></li>
<li><a href="#defaults"><code>_.<span class="me1">defaults</span></code></a></li>
<li><a href="#defaultsDeep"><code>_.<span class="me1">defaultsDeep</span></code></a></li>
<li><a href="#assignIn" class="alias"><code>_.<span class="me1">extend</span></code> → <code>assignIn</code></a></li>
<li><a href="#assignInWith" class="alias"><code>_.<span class="me1">extendWith</span></code> → <code>assignInWith</code></a></li>
<li><a href="#findKey"><code>_.<span class="me1">findKey</span></code></a></li>
<li><a href="#findLastKey"><code>_.<span class="me1">findLastKey</span></code></a></li>
<li><a href="#forIn"><code>_.<span class="me1">forIn</span></code></a></li>
<li><a href="#forInRight"><code>_.<span class="me1">forInRight</span></code></a></li>
<li><a href="#forOwn"><code>_.<span class="me1">forOwn</span></code></a></li>
<li><a href="#forOwnRight"><code>_.<span class="me1">forOwnRight</span></code></a></li>
<li><a href="#functions"><code>_.<span class="me1">functions</span></code></a></li>
<li><a href="#functionsIn"><code>_.<span class="me1">functionsIn</span></code></a></li>
<li><a href="#get"><code>_.<span class="me1">get</span></code></a></li>
<li><a href="#has"><code>_.<span class="me1">has</span></code></a></li>
<li><a href="#hasIn"><code>_.<span class="me1">hasIn</span></code></a></li>
<li><a href="#invert"><code>_.<span class="me1">invert</span></code></a></li>
<li><a href="#invertBy"><code>_.<span class="me1">invertBy</span></code></a></li>
<li><a href="#invoke"><code>_.<span class="me1">invoke</span></code></a></li>
<li><a href="#keys"><code>_.<span class="me1">keys</span></code></a></li>
<li><a href="#keysIn"><code>_.<span class="me1">keysIn</span></code></a></li>
<li><a href="#mapKeys"><code>_.<span class="me1">mapKeys</span></code></a></li>
<li><a href="#mapValues"><code>_.<span class="me1">mapValues</span></code></a></li>
<li><a href="#merge"><code>_.<span class="me1">merge</span></code></a></li>
<li><a href="#mergeWith"><code>_.<span class="me1">mergeWith</span></code></a></li>
<li><a href="#omit"><code>_.<span class="me1">omit</span></code></a></li>
<li><a href="#omitBy"><code>_.<span class="me1">omitBy</span></code></a></li>
<li><a href="#pick"><code>_.<span class="me1">pick</span></code></a></li>
<li><a href="#pickBy"><code>_.<span class="me1">pickBy</span></code></a></li>
<li><a href="#result"><code>_.<span class="me1">result</span></code></a></li>
<li><a href="#set"><code>_.<span class="me1">set</span></code></a></li>
<li><a href="#setWith"><code>_.<span class="me1">setWith</span></code></a></li>
<li><a href="#toPairs"><code>_.<span class="me1">toPairs</span></code></a></li>
<li><a href="#toPairsIn"><code>_.<span class="me1">toPairsIn</span></code></a></li>
<li><a href="#transform"><code>_.<span class="me1">transform</span></code></a></li>
<li><a href="#unset"><code>_.<span class="me1">unset</span></code></a></li>
<li><a href="#values"><code>_.<span class="me1">values</span></code></a></li>
<li><a href="#valuesIn"><code>_.<span class="me1">valuesIn</span></code></a></li>
</ul>
</div>
<div>
<h2><code>Seq</code></h2>
<ul>
<li><a href="#_"><code>_</code></a></li>
<li><a href="#chain"><code>_.<span class="me1">chain</span></code></a></li>
<li><a href="#tap"><code>_.<span class="me1">tap</span></code></a></li>
<li><a href="#thru"><code>_.<span class="me1">thru</span></code></a></li>
<li><a href="#prototype-Symbol-iterator"><code>_.<span class="me1">prototype</span><span class="br0">&#91;</span>Symbol.<span class="me1">iterator</span><span class="br0">&#93;</span></code></a></li>
<li><a href="#prototype-at"><code>_.<span class="me1">prototype</span>.<span class="me1">at</span></code></a></li>
<li><a href="#prototype-chain"><code>_.<span class="me1">prototype</span>.<span class="me1">chain</span></code></a></li>
<li><a href="#prototype-commit"><code>_.<span class="me1">prototype</span>.<span class="me1">commit</span></code></a></li>
<li><a href="#prototype-flatMap"><code>_.<span class="me1">prototype</span>.<span class="me1">flatMap</span></code></a></li>
<li><a href="#prototype-next"><code>_.<span class="me1">prototype</span>.<span class="me1">next</span></code></a></li>
<li><a href="#prototype-plant"><code>_.<span class="me1">prototype</span>.<span class="me1">plant</span></code></a></li>
<li><a href="#prototype-reverse"><code>_.<span class="me1">prototype</span>.<span class="me1">reverse</span></code></a></li>
<li><a href="#prototype-value" class="alias"><code>_.<span class="me1">prototype</span>.<span class="me1">toJSON</span></code> → <code>value</code></a></li>
<li><a href="#prototype-value"><code>_.<span class="me1">prototype</span>.<span class="me1">value</span></code></a></li>
<li><a href="#prototype-value" class="alias"><code>_.<span class="me1">prototype</span>.<span class="me1">valueOf</span></code> → <code>value</code></a></li>
</ul>
</div>
<div>
<h2><code>String</code></h2>
<ul>
<li><a href="#camelCase"><code>_.<span class="me1">camelCase</span></code></a></li>
<li><a href="#capitalize"><code>_.<span class="me1">capitalize</span></code></a></li>
<li><a href="#deburr"><code>_.<span class="me1">deburr</span></code></a></li>
<li><a href="#endsWith"><code>_.<span class="me1">endsWith</span></code></a></li>
<li><a href="#escape"><code>_.<span class="me1">escape</span></code></a></li>
<li><a href="#escapeRegExp"><code>_.<span class="me1">escapeRegExp</span></code></a></li>
<li><a href="#kebabCase"><code>_.<span class="me1">kebabCase</span></code></a></li>
<li><a href="#lowerCase"><code>_.<span class="me1">lowerCase</span></code></a></li>
<li><a href="#lowerFirst"><code>_.<span class="me1">lowerFirst</span></code></a></li>
<li><a href="#pad"><code>_.<span class="me1">pad</span></code></a></li>
<li><a href="#padEnd"><code>_.<span class="me1">padEnd</span></code></a></li>
<li><a href="#padStart"><code>_.<span class="me1">padStart</span></code></a></li>
<li><a href="#parseInt"><code>_.<span class="me1">parseInt</span></code></a></li>
<li><a href="#repeat"><code>_.<span class="me1">repeat</span></code></a></li>
<li><a href="#replace"><code>_.<span class="me1">replace</span></code></a></li>
<li><a href="#snakeCase"><code>_.<span class="me1">snakeCase</span></code></a></li>
<li><a href="#split"><code>_.<span class="me1">split</span></code></a></li>
<li><a href="#startCase"><code>_.<span class="me1">startCase</span></code></a></li>
<li><a href="#startsWith"><code>_.<span class="me1">startsWith</span></code></a></li>
<li><a href="#template"><code>_.<span class="me1">template</span></code></a></li>
<li><a href="#toLower"><code>_.<span class="me1">toLower</span></code></a></li>
<li><a href="#toUpper"><code>_.<span class="me1">toUpper</span></code></a></li>
<li><a href="#trim"><code>_.<span class="me1">trim</span></code></a></li>
<li><a href="#trimEnd"><code>_.<span class="me1">trimEnd</span></code></a></li>
<li><a href="#trimStart"><code>_.<span class="me1">trimStart</span></code></a></li>
<li><a href="#truncate"><code>_.<span class="me1">truncate</span></code></a></li>
<li><a href="#unescape"><code>_.<span class="me1">unescape</span></code></a></li>
<li><a href="#upperCase"><code>_.<span class="me1">upperCase</span></code></a></li>
<li><a href="#upperFirst"><code>_.<span class="me1">upperFirst</span></code></a></li>
<li><a href="#words"><code>_.<span class="me1">words</span></code></a></li>
</ul>
</div>
<div>
<h2><code>Util</code></h2>
<ul>
<li><a href="#attempt"><code>_.<span class="me1">attempt</span></code></a></li>
<li><a href="#bindAll"><code>_.<span class="me1">bindAll</span></code></a></li>
<li><a href="#cond"><code>_.<span class="me1">cond</span></code></a></li>
<li><a href="#conforms"><code>_.<span class="me1">conforms</span></code></a></li>
<li><a href="#constant"><code>_.<span class="me1">constant</span></code></a></li>
<li><a href="#flow"><code>_.<span class="me1">flow</span></code></a></li>
<li><a href="#flowRight"><code>_.<span class="me1">flowRight</span></code></a></li>
<li><a href="#identity"><code>_.<span class="me1">identity</span></code></a></li>
<li><a href="#iteratee"><code>_.<span class="me1">iteratee</span></code></a></li>
<li><a href="#matches"><code>_.<span class="me1">matches</span></code></a></li>
<li><a href="#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a></li>
<li><a href="#method"><code>_.<span class="me1">method</span></code></a></li>
<li><a href="#methodOf"><code>_.<span class="me1">methodOf</span></code></a></li>
<li><a href="#mixin"><code>_.<span class="me1">mixin</span></code></a></li>
<li><a href="#noConflict"><code>_.<span class="me1">noConflict</span></code></a></li>
<li><a href="#noop"><code>_.<span class="me1">noop</span></code></a></li>
<li><a href="#nthArg"><code>_.<span class="me1">nthArg</span></code></a></li>
<li><a href="#over"><code>_.<span class="me1">over</span></code></a></li>
<li><a href="#overEvery"><code>_.<span class="me1">overEvery</span></code></a></li>
<li><a href="#overSome"><code>_.<span class="me1">overSome</span></code></a></li>
<li><a href="#property"><code>_.<span class="me1">property</span></code></a></li>
<li><a href="#propertyOf"><code>_.<span class="me1">propertyOf</span></code></a></li>
<li><a href="#range"><code>_.<span class="me1">range</span></code></a></li>
<li><a href="#rangeRight"><code>_.<span class="me1">rangeRight</span></code></a></li>
<li><a href="#runInContext"><code>_.<span class="me1">runInContext</span></code></a></li>
<li><a href="#times"><code>_.<span class="me1">times</span></code></a></li>
<li><a href="#toPath"><code>_.<span class="me1">toPath</span></code></a></li>
<li><a href="#uniqueId"><code>_.<span class="me1">uniqueId</span></code></a></li>
</ul>
</div>
<div>
<h2><code>Properties</code></h2>
<ul>
<li><a href="#VERSION"><code>_.<span class="me1">VERSION</span></code></a></li>
<li><a href="#templateSettings"><code>_.<span class="me1">templateSettings</span></code></a></li>
<li><a href="#templateSettings-escape"><code>_.<span class="me1">templateSettings</span>.<span class="me1">escape</span></code></a></li>
<li><a href="#templateSettings-evaluate"><code>_.<span class="me1">templateSettings</span>.<span class="me1">evaluate</span></code></a></li>
<li><a href="#templateSettings-imports"><code>_.<span class="me1">templateSettings</span>.<span class="me1">imports</span></code></a></li>
<li><a href="#templateSettings-imports-_"><code>_.<span class="me1">templateSettings</span>.<span class="me1">imports</span>._</code></a></li>
<li><a href="#templateSettings-interpolate"><code>_.<span class="me1">templateSettings</span>.<span class="me1">interpolate</span></code></a></li>
<li><a href="#templateSettings-variable"><code>_.<span class="me1">templateSettings</span>.<span class="me1">variable</span></code></a></li>
</ul>
</div>
</div>
<div class="doc-container">
<div>
<h2 class="first-heading"><code>“Array” Methods</code></h2>
<div>
<h3><a id="chunk"></a><code>_.<span class="me1">chunk</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>size<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#chunk">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L5437" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.chunk" title="See the npm package">&#x24C3;</a></p>
<p>Creates an array of elements split into groups the length of <code>size</code>.
If <code>array</code> can’t be split evenly, the final chunk will be the remaining
elements.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to process.</li>
<li><code><span class="br0">&#91;</span>size<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span></code> <em>(number)</em>: The length of each chunk.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array containing chunks.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">chunk</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="sy0">,</span> <span class="st0">'d'</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [['a', 'b'], ['c', 'd']]</span><br><br>_.<span class="me1">chunk</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="sy0">,</span> <span class="st0">'d'</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [['a', 'b', 'c'], ['d']]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="compact"></a><code>_.<span class="me1">compact</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span></code></h3>
<p><a href="#compact">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L5468" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.compact" title="See the npm package">&#x24C3;</a></p>
<p>Creates an array with all falsey values removed. The values <code><span class="kw2">false</span></code>, <code><span class="kw2">null</span></code>,
<code>0</code>, <code><span class="st0">&quot;&quot;</span></code>, <code>undefined</code>, and <code>NaN</code> are falsey.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to compact.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of filtered values.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">compact</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="kw2">false</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="st0">''</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="concat"></a><code>_.<span class="me1">concat</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>values<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#concat">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L5504" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.concat" title="See the npm package">&#x24C3;</a></p>
<p>Creates a new array concatenating <code>array</code> with any additional arrays
and/or values.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to concatenate.</li>
<li><code><span class="br0">&#91;</span>values<span class="br0">&#93;</span></code> <em>(…&#42;)</em>: The values to concatenate.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new concatenated array.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> array <span class="sy0">=</span> <span class="br0">&#91;</span><span class="nu0">1</span><span class="br0">&#93;</span><span class="sy0">;</span><br><span class="kw2">var</span> other <span class="sy0">=</span> _.<span class="me1">concat</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">3</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="br0">&#91;</span><span class="nu0">4</span><span class="br0">&#93;</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br>console.<span class="me1">log</span><span class="br0">&#40;</span>other<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3, [4]]</span><br><br>console.<span class="me1">log</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="difference"></a><code>_.<span class="me1">difference</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>values<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#difference">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L5528" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.difference" title="See the npm package">&#x24C3;</a></p>
<p>Creates an array of unique <code>array</code> values not included in the other
given arrays using <a href="http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero"><code>SameValueZero</code></a>
for equality comparisons.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to inspect.</li>
<li><code><span class="br0">&#91;</span>values<span class="br0">&#93;</span></code> <em>(…Array)</em>: The values to exclude.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of filtered values.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">difference</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [3, 1]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="differenceBy"></a><code>_.<span class="me1">differenceBy</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>values<span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#differenceBy">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L5555" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.differenceby" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#difference"><code>_.<span class="me1">difference</span></code></a> except that it accepts <code>iteratee</code> which
is invoked for each element of <code>array</code> and <code>values</code> to generate the criterion
by which uniqueness is computed. The iteratee is invoked with one argument: (value).</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to inspect.</li>
<li><code><span class="br0">&#91;</span>values<span class="br0">&#93;</span></code> <em>(…Array)</em>: The values to exclude.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The iteratee invoked per element.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of filtered values.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">differenceBy</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">3.1</span><span class="sy0">,</span> <span class="nu0">2.2</span><span class="sy0">,</span> <span class="nu0">1.3</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">4.4</span><span class="sy0">,</span> <span class="nu0">2.5</span><span class="br0">&#93;</span><span class="sy0">,</span> Math.<span class="me1">floor</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [3.1, 1.3]</span><br><br><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">differenceBy</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="st0">'x'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [{ 'x': 2 }]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="differenceWith"></a><code>_.<span class="me1">differenceWith</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>values<span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>comparator<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#differenceWith">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L5584" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.differencewith" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#difference"><code>_.<span class="me1">difference</span></code></a> except that it accepts <code>comparator</code>
which is invoked to compare elements of <code>array</code> to <code>values</code>. The comparator
is invoked with two arguments: (arrVal, othVal).</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to inspect.</li>
<li><code><span class="br0">&#91;</span>values<span class="br0">&#93;</span></code> <em>(…Array)</em>: The values to exclude.</li>
<li><code><span class="br0">&#91;</span>comparator<span class="br0">&#93;</span></code> <em>(Function)</em>: The comparator invoked per element.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of filtered values.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> objects <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'y'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="st0">'y'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">differenceWith</span><span class="br0">&#40;</span>objects<span class="sy0">,</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'y'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">,</span> _.<span class="me1">isEqual</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [{ 'x': 2, 'y': 1 }]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="drop"></a><code>_.<span class="me1">drop</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>n<span class="sy0">=</span><span class="nu0">1</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#drop">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L5618" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.drop" title="See the npm package">&#x24C3;</a></p>
<p>Creates a slice of <code>array</code> with <code>n</code> elements dropped from the beginning.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
<li><code><span class="br0">&#91;</span>n<span class="sy0">=</span><span class="nu0">1</span><span class="br0">&#93;</span></code> <em>(number)</em>: The number of elements to drop.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the slice of <code>array</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">drop</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [2, 3]</span><br><br>_.<span class="me1">drop</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [3]</span><br><br>_.<span class="me1">drop</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → []</span><br><br>_.<span class="me1">drop</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">0</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="dropRight"></a><code>_.<span class="me1">dropRight</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>n<span class="sy0">=</span><span class="nu0">1</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#dropRight">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L5651" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.dropright" title="See the npm package">&#x24C3;</a></p>
<p>Creates a slice of <code>array</code> with <code>n</code> elements dropped from the end.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
<li><code><span class="br0">&#91;</span>n<span class="sy0">=</span><span class="nu0">1</span><span class="br0">&#93;</span></code> <em>(number)</em>: The number of elements to drop.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the slice of <code>array</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">dropRight</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2]</span><br><br>_.<span class="me1">dropRight</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1]</span><br><br>_.<span class="me1">dropRight</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → []</span><br><br>_.<span class="me1">dropRight</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">0</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="dropRightWhile"></a><code>_.<span class="me1">dropRightWhile</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#dropRightWhile">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L5695" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.droprightwhile" title="See the npm package">&#x24C3;</a></p>
<p>Creates a slice of <code>array</code> excluding elements dropped from the end.
Elements are dropped until <code>predicate</code> returns falsey. The predicate is
invoked with three arguments: (value, index, array).</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
<li><code><span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the slice of <code>array</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">&#91;</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><br><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">dropRightWhile</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>o<span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw1">return</span> <span class="sy0">!</span>o.<span class="me1">active</span><span class="sy0">;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for ['barney']</span><br><br><span class="co1">// The `_.matches` iteratee shorthand.</span><br>_.<span class="me1">dropRightWhile</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for ['barney', 'fred']</span><br><br><span class="co1">// The `_.matchesProperty` iteratee shorthand.</span><br>_.<span class="me1">dropRightWhile</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for ['barney']</span><br><br><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">dropRightWhile</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for ['barney', 'fred', 'pebbles']</span></code></pre>
<hr />
</div>
<div>
<h3><a id="dropWhile"></a><code>_.<span class="me1">dropWhile</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#dropWhile">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L5735" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.dropwhile" title="See the npm package">&#x24C3;</a></p>
<p>Creates a slice of <code>array</code> excluding elements dropped from the beginning.
Elements are dropped until <code>predicate</code> returns falsey. The predicate is
invoked with three arguments: (value, index, array).</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
<li><code><span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the slice of <code>array</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">&#91;</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">&#125;</span><br><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">dropWhile</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>o<span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw1">return</span> <span class="sy0">!</span>o.<span class="me1">active</span><span class="sy0">;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for ['pebbles']</span><br><br><span class="co1">// The `_.matches` iteratee shorthand.</span><br>_.<span class="me1">dropWhile</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for ['fred', 'pebbles']</span><br><br><span class="co1">// The `_.matchesProperty` iteratee shorthand.</span><br>_.<span class="me1">dropWhile</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for ['pebbles']</span><br><br><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">dropWhile</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for ['barney', 'fred', 'pebbles']</span></code></pre>
<hr />
</div>
<div>
<h3><a id="fill"></a><code>_.<span class="me1">fill</span><span class="br0">&#40;</span>array<span class="sy0">,</span> value<span class="sy0">,</span> <span class="br0">&#91;</span>start<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>end<span class="sy0">=</span>array.<span class="me1">length</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#fill">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L5769" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.fill" title="See the npm package">&#x24C3;</a></p>
<p>Fills elements of <code>array</code> with <code>value</code> from <code>start</code> up to, but not
including, <code>end</code>.
<br>
<br>
<strong>Note:</strong> This method mutates <code>array</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to fill.</li>
<li><code>value</code> <em>(&#42;)</em>: The value to fill <code>array</code> with.</li>
<li><code><span class="br0">&#91;</span>start<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span></code> <em>(number)</em>: The start position.</li>
<li><code><span class="br0">&#91;</span>end<span class="sy0">=</span>array.<span class="me1">length</span><span class="br0">&#93;</span></code> <em>(number)</em>: The end position.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns <code>array</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> array <span class="sy0">=</span> <span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">fill</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="st0">'a'</span><span class="br0">&#41;</span><span class="sy0">;</span><br>console.<span class="me1">log</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ['a', 'a', 'a']</span><br><br>_.<span class="me1">fill</span><span class="br0">&#40;</span>Array<span class="br0">&#40;</span><span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [2, 2, 2]</span><br><br>_.<span class="me1">fill</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">6</span><span class="sy0">,</span> <span class="nu0">8</span><span class="sy0">,</span> <span class="nu0">10</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="st0">'*'</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [4, '*', '*', 10]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="findIndex"></a><code>_.<span class="me1">findIndex</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#findIndex">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L5814" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.findindex" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#find"><code>_.<span class="me1">find</span></code></a> except that it returns the index of the first
element <code>predicate</code> returns truthy for instead of the element itself.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to search.</li>
<li><code><span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the index of the found element, else <code><span class="sy0">-</span><span class="nu0">1</span></code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">&#91;</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">&#125;</span><br><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">findIndex</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>o<span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw1">return</span> o.<span class="me1">user</span> <span class="sy0">==</span> <span class="st0">'barney'</span><span class="sy0">;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 0</span><br><br><span class="co1">// The `_.matches` iteratee shorthand.</span><br>_.<span class="me1">findIndex</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 1</span><br><br><span class="co1">// The `_.matchesProperty` iteratee shorthand.</span><br>_.<span class="me1">findIndex</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 0</span><br><br><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">findIndex</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 2</span></code></pre>
<hr />
</div>
<div>
<h3><a id="findLastIndex"></a><code>_.<span class="me1">findLastIndex</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#findLastIndex">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L5853" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.findlastindex" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#findIndex"><code>_.<span class="me1">findIndex</span></code></a> except that it iterates over elements
of <code>collection</code> from right to left.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to search.</li>
<li><code><span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the index of the found element, else <code><span class="sy0">-</span><span class="nu0">1</span></code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">&#91;</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><br><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">findLastIndex</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>o<span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw1">return</span> o.<span class="me1">user</span> <span class="sy0">==</span> <span class="st0">'pebbles'</span><span class="sy0">;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 2</span><br><br><span class="co1">// The `_.matches` iteratee shorthand.</span><br>_.<span class="me1">findLastIndex</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 0</span><br><br><span class="co1">// The `_.matchesProperty` iteratee shorthand.</span><br>_.<span class="me1">findLastIndex</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 2</span><br><br><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">findLastIndex</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 0</span></code></pre>
<hr />
</div>
<div>
<h3><a id="flatten"></a><code>_.<span class="me1">flatten</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span></code></h3>
<p><a href="#flatten">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L5872" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.flatten" title="See the npm package">&#x24C3;</a></p>
<p>Flattens <code>array</code> a single level deep.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to flatten.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new flattened array.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">flatten</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">2</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">3</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">4</span><span class="br0">&#93;</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">&#93;</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, [3, [4]], 5]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="flattenDeep"></a><code>_.<span class="me1">flattenDeep</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span></code></h3>
<p><a href="#flattenDeep">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L5890" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.flattendeep" title="See the npm package">&#x24C3;</a></p>
<p>Recursively flattens <code>array</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to flatten.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new flattened array.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">flattenDeep</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">2</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">3</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">4</span><span class="br0">&#93;</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">&#93;</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3, 4, 5]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="flattenDepth"></a><code>_.<span class="me1">flattenDepth</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>depth<span class="sy0">=</span><span class="nu0">1</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#flattenDepth">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L5914" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.flattendepth" title="See the npm package">&#x24C3;</a></p>
<p>Recursively flatten <code>array</code> up to <code>depth</code> times.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to flatten.</li>
<li><code><span class="br0">&#91;</span>depth<span class="sy0">=</span><span class="nu0">1</span><span class="br0">&#93;</span></code> <em>(number)</em>: The maximum recursion depth.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new flattened array.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> array <span class="sy0">=</span> <span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">2</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">3</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">4</span><span class="br0">&#93;</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">&#93;</span><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">flattenDepth</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="nu0">1</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, [3, [4]], 5]</span><br><br>_.<span class="me1">flattenDepth</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3, [4], 5]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="fromPairs"></a><code>_.<span class="me1">fromPairs</span><span class="br0">&#40;</span>pairs<span class="br0">&#41;</span></code></h3>
<p><a href="#fromPairs">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L5937" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.frompairs" title="See the npm package">&#x24C3;</a></p>
<p>The inverse of <a href="#toPairs"><code>_.<span class="me1">toPairs</span></code></a>; this method returns an object composed
from key-value <code>pairs</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>pairs</code> <em>(Array)</em>: The key-value pairs.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new object.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">fromPairs</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="br0">&#91;</span><span class="st0">'fred'</span><span class="sy0">,</span> <span class="nu0">30</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'barney'</span><span class="sy0">,</span> <span class="nu0">40</span><span class="br0">&#93;</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'fred': 30, 'barney': 40 }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="head"></a><code>_.<span class="me1">head</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span></code></h3>
<p><a href="#head">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L5966" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.head" title="See the npm package">&#x24C3;</a></p>
<p>Gets the first element of <code>array</code>.</p>
<h4>Aliases</h4>
<p><em>_.first</em></p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
</ol>
<h4>Returns</h4>
<p><em>(&#42;)</em>:  Returns the first element of <code>array</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">head</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 1</span><br><br>_.<span class="me1">head</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → undefined</span></code></pre>
<hr />
</div>
<div>
<h3><a id="indexOf"></a><code>_.<span class="me1">indexOf</span><span class="br0">&#40;</span>array<span class="sy0">,</span> value<span class="sy0">,</span> <span class="br0">&#91;</span>fromIndex<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#indexOf">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L5992" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.indexof" title="See the npm package">&#x24C3;</a></p>
<p>Gets the index at which the first occurrence of <code>value</code> is found in <code>array</code>
using <a href="http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero"><code>SameValueZero</code></a>
for equality comparisons. If <code>fromIndex</code> is negative, it’s used as the offset
from the end of <code>array</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to search.</li>
<li><code>value</code> <em>(&#42;)</em>: The value to search for.</li>
<li><code><span class="br0">&#91;</span>fromIndex<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span></code> <em>(number)</em>: The index to search from.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the index of the matched value, else <code><span class="sy0">-</span><span class="nu0">1</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">indexOf</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 1</span><br><br><span class="co1">// Search from the `fromIndex`.</span><br>_.<span class="me1">indexOf</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 3</span></code></pre>
<hr />
</div>
<div>
<h3><a id="initial"></a><code>_.<span class="me1">initial</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span></code></h3>
<p><a href="#initial">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6017" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.initial" title="See the npm package">&#x24C3;</a></p>
<p>Gets all but the last element of <code>array</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the slice of <code>array</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">initial</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="intersection"></a><code>_.<span class="me1">intersection</span><span class="br0">&#40;</span><span class="br0">&#91;</span>arrays<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#intersection">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6036" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.intersection" title="See the npm package">&#x24C3;</a></p>
<p>Creates an array of unique values that are included in all given arrays
using <a href="http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero"><code>SameValueZero</code></a>
for equality comparisons.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>arrays<span class="br0">&#93;</span></code> <em>(…Array)</em>: The arrays to inspect.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of shared values.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">intersection</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [2]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="intersectionBy"></a><code>_.<span class="me1">intersectionBy</span><span class="br0">&#40;</span><span class="br0">&#91;</span>arrays<span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#intersectionBy">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6063" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.intersectionby" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#intersection"><code>_.<span class="me1">intersection</span></code></a> except that it accepts <code>iteratee</code>
which is invoked for each element of each <code>arrays</code> to generate the criterion
by which uniqueness is computed. The iteratee is invoked with one argument: (value).</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>arrays<span class="br0">&#93;</span></code> <em>(…Array)</em>: The arrays to inspect.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The iteratee invoked per element.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of shared values.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">intersectionBy</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">2.1</span><span class="sy0">,</span> <span class="nu0">1.2</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">4.3</span><span class="sy0">,</span> <span class="nu0">2.4</span><span class="br0">&#93;</span><span class="sy0">,</span> Math.<span class="me1">floor</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [2.1]</span><br><br><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">intersectionBy</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="st0">'x'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [{ 'x': 1 }]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="intersectionWith"></a><code>_.<span class="me1">intersectionWith</span><span class="br0">&#40;</span><span class="br0">&#91;</span>arrays<span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>comparator<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#intersectionWith">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6096" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.intersectionwith" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#intersection"><code>_.<span class="me1">intersection</span></code></a> except that it accepts <code>comparator</code>
which is invoked to compare elements of <code>arrays</code>. The comparator is invoked
with two arguments: (arrVal, othVal).</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>arrays<span class="br0">&#93;</span></code> <em>(…Array)</em>: The arrays to inspect.</li>
<li><code><span class="br0">&#91;</span>comparator<span class="br0">&#93;</span></code> <em>(Function)</em>: The comparator invoked per element.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of shared values.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> objects <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'y'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="st0">'y'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">;</span><br><span class="kw2">var</span> others <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'y'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'y'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">intersectionWith</span><span class="br0">&#40;</span>objects<span class="sy0">,</span> others<span class="sy0">,</span> _.<span class="me1">isEqual</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [{ 'x': 1, 'y': 2 }]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="join"></a><code>_.<span class="me1">join</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>separator<span class="sy0">=</span><span class="st0">','</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#join">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6124" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.join" title="See the npm package">&#x24C3;</a></p>
<p>Converts all elements in <code>array</code> into a string separated by <code>separator</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to convert.</li>
<li><code><span class="br0">&#91;</span>separator<span class="sy0">=</span><span class="st0">','</span><span class="br0">&#93;</span></code> <em>(string)</em>: The element separator.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the joined string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">join</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="st0">'~'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'a~b~c'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="last"></a><code>_.<span class="me1">last</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span></code></h3>
<p><a href="#last">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6141" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.last" title="See the npm package">&#x24C3;</a></p>
<p>Gets the last element of <code>array</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
</ol>
<h4>Returns</h4>
<p><em>(&#42;)</em>:  Returns the last element of <code>array</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">last</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 3</span></code></pre>
<hr />
</div>
<div>
<h3><a id="lastIndexOf"></a><code>_.<span class="me1">lastIndexOf</span><span class="br0">&#40;</span>array<span class="sy0">,</span> value<span class="sy0">,</span> <span class="br0">&#91;</span>fromIndex<span class="sy0">=</span>array.<span class="me1">length</span><span class="sy0">-</span><span class="nu0">1</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#lastIndexOf">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6166" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.lastindexof" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#indexOf"><code>_.<span class="me1">indexOf</span></code></a> except that it iterates over elements of
<code>array</code> from right to left.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to search.</li>
<li><code>value</code> <em>(&#42;)</em>: The value to search for.</li>
<li><code><span class="br0">&#91;</span>fromIndex<span class="sy0">=</span>array.<span class="me1">length</span><span class="sy0">-</span><span class="nu0">1</span><span class="br0">&#93;</span></code> <em>(number)</em>: The index to search from.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the index of the matched value, else <code><span class="sy0">-</span><span class="nu0">1</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">lastIndexOf</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 3</span><br><br><span class="co1">// Search from the `fromIndex`.</span><br>_.<span class="me1">lastIndexOf</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 1</span></code></pre>
<hr />
</div>
<div>
<h3><a id="pull"></a><code>_.<span class="me1">pull</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>values<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#pull">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6208" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.pull" title="See the npm package">&#x24C3;</a></p>
<p>Removes all given values from <code>array</code> using
<a href="http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero"><code>SameValueZero</code></a>
for equality comparisons.
<br>
<br>
<strong>Note:</strong> Unlike <a href="#without"><code>_.<span class="me1">without</span></code></a>, this method mutates <code>array</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to modify.</li>
<li><code><span class="br0">&#91;</span>values<span class="br0">&#93;</span></code> <em>(…&#42;)</em>: The values to remove.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns <code>array</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> array <span class="sy0">=</span> <span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">pull</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br>console.<span class="me1">log</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 1]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="pullAll"></a><code>_.<span class="me1">pullAll</span><span class="br0">&#40;</span>array<span class="sy0">,</span> values<span class="br0">&#41;</span></code></h3>
<p><a href="#pullAll">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6229" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.pullall" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#pull"><code>_.<span class="me1">pull</span></code></a> except that it accepts an array of values to remove.
<br>
<br>
<strong>Note:</strong> Unlike <a href="#difference"><code>_.<span class="me1">difference</span></code></a>, this method mutates <code>array</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to modify.</li>
<li><code>values</code> <em>(Array)</em>: The values to remove.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns <code>array</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> array <span class="sy0">=</span> <span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">pullAll</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br>console.<span class="me1">log</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 1]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="pullAllBy"></a><code>_.<span class="me1">pullAllBy</span><span class="br0">&#40;</span>array<span class="sy0">,</span> values<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#pullAllBy">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6257" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.pullallby" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#pullAll"><code>_.<span class="me1">pullAll</span></code></a> except that it accepts <code>iteratee</code> which is
invoked for each element of <code>array</code> and <code>values</code> to generate the criterion
by which uniqueness is computed. The iteratee is invoked with one argument: (value).
<br>
<br>
<strong>Note:</strong> Unlike <a href="#differenceBy"><code>_.<span class="me1">differenceBy</span></code></a>, this method mutates <code>array</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to modify.</li>
<li><code>values</code> <em>(Array)</em>: The values to remove.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The iteratee invoked per element.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns <code>array</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> array <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">3</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">pullAllBy</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">3</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="st0">'x'</span><span class="br0">&#41;</span><span class="sy0">;</span><br>console.<span class="me1">log</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [{ 'x': 2 }]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="pullAt"></a><code>_.<span class="me1">pullAt</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>indexes<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#pullAt">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6287" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.pullat" title="See the npm package">&#x24C3;</a></p>
<p>Removes elements from <code>array</code> corresponding to <code>indexes</code> and returns an
array of removed elements.
<br>
<br>
<strong>Note:</strong> Unlike <a href="#at"><code>_.<span class="me1">at</span></code></a>, this method mutates <code>array</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to modify.</li>
<li><code><span class="br0">&#91;</span>indexes<span class="br0">&#93;</span></code> <em>(…(number|number&#91;&#93;)</em>: The indexes of elements to remove, specified individually or in arrays.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of removed elements.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> array <span class="sy0">=</span> <span class="br0">&#91;</span><span class="nu0">5</span><span class="sy0">,</span> <span class="nu0">10</span><span class="sy0">,</span> <span class="nu0">15</span><span class="sy0">,</span> <span class="nu0">20</span><span class="br0">&#93;</span><span class="sy0">;</span><br><span class="kw2">var</span> evens <span class="sy0">=</span> _.<span class="me1">pullAt</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br>console.<span class="me1">log</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [5, 15]</span><br><br>console.<span class="me1">log</span><span class="br0">&#40;</span>evens<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [10, 20]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="remove"></a><code>_.<span class="me1">remove</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#remove">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6321" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.remove" title="See the npm package">&#x24C3;</a></p>
<p>Removes all elements from <code>array</code> that <code>predicate</code> returns truthy for
and returns an array of the removed elements. The predicate is invoked with
three arguments: (value, index, array).
<br>
<br>
<strong>Note:</strong> Unlike <a href="#filter"><code>_.<span class="me1">filter</span></code></a>, this method mutates <code>array</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to modify.</li>
<li><code><span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of removed elements.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> array <span class="sy0">=</span> <span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">&#93;</span><span class="sy0">;</span><br><span class="kw2">var</span> evens <span class="sy0">=</span> _.<span class="me1">remove</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>n<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">%</span> <span class="nu0">2</span> <span class="sy0">==</span> <span class="nu0">0</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br>console.<span class="me1">log</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 3]</span><br><br>console.<span class="me1">log</span><span class="br0">&#40;</span>evens<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [2, 4]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="reverse"></a><code>_.<span class="me1">reverse</span><span class="br0">&#40;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#reverse">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6363" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.reverse" title="See the npm package">&#x24C3;</a></p>
<p>Reverses <code>array</code> so that the first element becomes the last, the second
element becomes the second to last, and so on.
<br>
<br>
<strong>Note:</strong> This method mutates <code>array</code> and is based on
<a href="https://mdn.io/Array/reverse"><code>Array#<span class=me1>reverse</span></code></a>.</p>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns <code>array</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> array <span class="sy0">=</span> <span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">reverse</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [3, 2, 1]</span><br><br>console.<span class="me1">log</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [3, 2, 1]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="slice"></a><code>_.<span class="me1">slice</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>start<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>end<span class="sy0">=</span>array.<span class="me1">length</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#slice">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6381" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.slice" title="See the npm package">&#x24C3;</a></p>
<p>Creates a slice of <code>array</code> from <code>start</code> up to, but not including, <code>end</code>.
<br>
<br>
<strong>Note:</strong> This method is used instead of <a href="https://mdn.io/Array/slice"><code>Array#<span class=me1>slice</span></code></a>
to ensure dense arrays are returned.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to slice.</li>
<li><code><span class="br0">&#91;</span>start<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span></code> <em>(number)</em>: The start position.</li>
<li><code><span class="br0">&#91;</span>end<span class="sy0">=</span>array.<span class="me1">length</span><span class="br0">&#93;</span></code> <em>(number)</em>: The end position.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the slice of <code>array</code>.</p>
<hr />
</div>
<div>
<h3><a id="sortedIndex"></a><code>_.<span class="me1">sortedIndex</span><span class="br0">&#40;</span>array<span class="sy0">,</span> value<span class="br0">&#41;</span></code></h3>
<p><a href="#sortedIndex">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6415" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.sortedindex" title="See the npm package">&#x24C3;</a></p>
<p>Uses a binary search to determine the lowest index at which <code>value</code> should
be inserted into <code>array</code> in order to maintain its sort order.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The sorted array to inspect.</li>
<li><code>value</code> <em>(&#42;)</em>: The value to evaluate.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the index at which <code>value</code> should be inserted into <code>array</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">sortedIndex</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">30</span><span class="sy0">,</span> <span class="nu0">50</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">40</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 1</span><br><br>_.<span class="me1">sortedIndex</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 0</span></code></pre>
<hr />
</div>
<div>
<h3><a id="sortedIndexBy"></a><code>_.<span class="me1">sortedIndexBy</span><span class="br0">&#40;</span>array<span class="sy0">,</span> value<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#sortedIndexBy">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6442" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.sortedindexby" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#sortedIndex"><code>_.<span class="me1">sortedIndex</span></code></a> except that it accepts <code>iteratee</code>
which is invoked for <code>value</code> and each element of <code>array</code> to compute their
sort ranking. The iteratee is invoked with one argument: (value).</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The sorted array to inspect.</li>
<li><code>value</code> <em>(&#42;)</em>: The value to evaluate.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The iteratee invoked per element.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the index at which <code>value</code> should be inserted into <code>array</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> dict <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'thirty'</span><span class="sy0">:</span> <span class="nu0">30</span><span class="sy0">,</span> <span class="st0">'forty'</span><span class="sy0">:</span> <span class="nu0">40</span><span class="sy0">,</span> <span class="st0">'fifty'</span><span class="sy0">:</span> <span class="nu0">50</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><br>_.<span class="me1">sortedIndexBy</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="st0">'thirty'</span><span class="sy0">,</span> <span class="st0">'fifty'</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="st0">'forty'</span><span class="sy0">,</span> _.<span class="me1">propertyOf</span><span class="br0">&#40;</span>dict<span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 1</span><br><br><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">sortedIndexBy</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">4</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">5</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">4</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="st0">'x'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 0</span></code></pre>
<hr />
</div>
<div>
<h3><a id="sortedIndexOf"></a><code>_.<span class="me1">sortedIndexOf</span><span class="br0">&#40;</span>array<span class="sy0">,</span> value<span class="br0">&#41;</span></code></h3>
<p><a href="#sortedIndexOf">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6461" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.sortedindexof" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#indexOf"><code>_.<span class="me1">indexOf</span></code></a> except that it performs a binary
search on a sorted <code>array</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to search.</li>
<li><code>value</code> <em>(&#42;)</em>: The value to search for.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the index of the matched value, else <code><span class="sy0">-</span><span class="nu0">1</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">sortedIndexOf</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 2</span></code></pre>
<hr />
</div>
<div>
<h3><a id="sortedLastIndex"></a><code>_.<span class="me1">sortedLastIndex</span><span class="br0">&#40;</span>array<span class="sy0">,</span> value<span class="br0">&#41;</span></code></h3>
<p><a href="#sortedLastIndex">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6488" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.sortedlastindex" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#sortedIndex"><code>_.<span class="me1">sortedIndex</span></code></a> except that it returns the highest
index at which <code>value</code> should be inserted into <code>array</code> in order to
maintain its sort order.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The sorted array to inspect.</li>
<li><code>value</code> <em>(&#42;)</em>: The value to evaluate.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the index at which <code>value</code> should be inserted into <code>array</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">sortedLastIndex</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 1</span></code></pre>
<hr />
</div>
<div>
<h3><a id="sortedLastIndexBy"></a><code>_.<span class="me1">sortedLastIndexBy</span><span class="br0">&#40;</span>array<span class="sy0">,</span> value<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#sortedLastIndexBy">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6510" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.sortedlastindexby" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#sortedLastIndex"><code>_.<span class="me1">sortedLastIndex</span></code></a> except that it accepts <code>iteratee</code>
which is invoked for <code>value</code> and each element of <code>array</code> to compute their
sort ranking. The iteratee is invoked with one argument: (value).</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The sorted array to inspect.</li>
<li><code>value</code> <em>(&#42;)</em>: The value to evaluate.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The iteratee invoked per element.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the index at which <code>value</code> should be inserted into <code>array</code>.</p>
<h4>Example</h4>
<pre><code><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">sortedLastIndexBy</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">4</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">5</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">4</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="st0">'x'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 1</span></code></pre>
<hr />
</div>
<div>
<h3><a id="sortedLastIndexOf"></a><code>_.<span class="me1">sortedLastIndexOf</span><span class="br0">&#40;</span>array<span class="sy0">,</span> value<span class="br0">&#41;</span></code></h3>
<p><a href="#sortedLastIndexOf">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6529" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.sortedlastindexof" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#lastIndexOf"><code>_.<span class="me1">lastIndexOf</span></code></a> except that it performs a binary
search on a sorted <code>array</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to search.</li>
<li><code>value</code> <em>(&#42;)</em>: The value to search for.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the index of the matched value, else <code><span class="sy0">-</span><span class="nu0">1</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">sortedLastIndexOf</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 3</span></code></pre>
<hr />
</div>
<div>
<h3><a id="sortedUniq"></a><code>_.<span class="me1">sortedUniq</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span></code></h3>
<p><a href="#sortedUniq">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6554" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.sorteduniq" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#uniq"><code>_.<span class="me1">uniq</span></code></a> except that it’s designed and optimized
for sorted arrays.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to inspect.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new duplicate free array.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">sortedUniq</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="sortedUniqBy"></a><code>_.<span class="me1">sortedUniqBy</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#sortedUniqBy">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6575" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.sorteduniqby" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#uniqBy"><code>_.<span class="me1">uniqBy</span></code></a> except that it’s designed and optimized
for sorted arrays.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to inspect.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="br0">&#93;</span></code> <em>(Function)</em>: The iteratee invoked per element.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new duplicate free array.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">sortedUniqBy</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1.1</span><span class="sy0">,</span> <span class="nu0">1.2</span><span class="sy0">,</span> <span class="nu0">2.3</span><span class="sy0">,</span> <span class="nu0">2.4</span><span class="br0">&#93;</span><span class="sy0">,</span> Math.<span class="me1">floor</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1.1, 2.3]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="tail"></a><code>_.<span class="me1">tail</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span></code></h3>
<p><a href="#tail">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6594" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.tail" title="See the npm package">&#x24C3;</a></p>
<p>Gets all but the first element of <code>array</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the slice of <code>array</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">tail</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [2, 3]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="take"></a><code>_.<span class="me1">take</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>n<span class="sy0">=</span><span class="nu0">1</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#take">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6622" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.take" title="See the npm package">&#x24C3;</a></p>
<p>Creates a slice of <code>array</code> with <code>n</code> elements taken from the beginning.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
<li><code><span class="br0">&#91;</span>n<span class="sy0">=</span><span class="nu0">1</span><span class="br0">&#93;</span></code> <em>(number)</em>: The number of elements to take.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the slice of <code>array</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">take</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1]</span><br><br>_.<span class="me1">take</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2]</span><br><br>_.<span class="me1">take</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span><br><br>_.<span class="me1">take</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">0</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → []</span></code></pre>
<hr />
</div>
<div>
<h3><a id="takeRight"></a><code>_.<span class="me1">takeRight</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>n<span class="sy0">=</span><span class="nu0">1</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#takeRight">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6654" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.takeright" title="See the npm package">&#x24C3;</a></p>
<p>Creates a slice of <code>array</code> with <code>n</code> elements taken from the end.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
<li><code><span class="br0">&#91;</span>n<span class="sy0">=</span><span class="nu0">1</span><span class="br0">&#93;</span></code> <em>(number)</em>: The number of elements to take.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the slice of <code>array</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">takeRight</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [3]</span><br><br>_.<span class="me1">takeRight</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [2, 3]</span><br><br>_.<span class="me1">takeRight</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span><br><br>_.<span class="me1">takeRight</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">0</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → []</span></code></pre>
<hr />
</div>
<div>
<h3><a id="takeRightWhile"></a><code>_.<span class="me1">takeRightWhile</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#takeRightWhile">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6698" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.takerightwhile" title="See the npm package">&#x24C3;</a></p>
<p>Creates a slice of <code>array</code> with elements taken from the end. Elements are
taken until <code>predicate</code> returns falsey. The predicate is invoked with three
arguments: (value, index, array).</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
<li><code><span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the slice of <code>array</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">&#91;</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><br><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">takeRightWhile</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>o<span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw1">return</span> <span class="sy0">!</span>o.<span class="me1">active</span><span class="sy0">;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for ['fred', 'pebbles']</span><br><br><span class="co1">// The `_.matches` iteratee shorthand.</span><br>_.<span class="me1">takeRightWhile</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for ['pebbles']</span><br><br><span class="co1">// The `_.matchesProperty` iteratee shorthand.</span><br>_.<span class="me1">takeRightWhile</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for ['fred', 'pebbles']</span><br><br><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">takeRightWhile</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → []</span></code></pre>
<hr />
</div>
<div>
<h3><a id="takeWhile"></a><code>_.<span class="me1">takeWhile</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#takeWhile">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6738" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.takewhile" title="See the npm package">&#x24C3;</a></p>
<p>Creates a slice of <code>array</code> with elements taken from the beginning. Elements
are taken until <code>predicate</code> returns falsey. The predicate is invoked with
three arguments: (value, index, array).</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
<li><code><span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the slice of <code>array</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">&#91;</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span><span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">&#125;</span><br><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">takeWhile</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>o<span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw1">return</span> <span class="sy0">!</span>o.<span class="me1">active</span><span class="sy0">;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for ['barney', 'fred']</span><br><br><span class="co1">// The `_.matches` iteratee shorthand.</span><br>_.<span class="me1">takeWhile</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for ['barney']</span><br><br><span class="co1">// The `_.matchesProperty` iteratee shorthand.</span><br>_.<span class="me1">takeWhile</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for ['barney', 'fred']</span><br><br><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">takeWhile</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → []</span></code></pre>
<hr />
</div>
<div>
<h3><a id="union"></a><code>_.<span class="me1">union</span><span class="br0">&#40;</span><span class="br0">&#91;</span>arrays<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#union">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6759" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.union" title="See the npm package">&#x24C3;</a></p>
<p>Creates an array of unique values, in order, from all given arrays using
<a href="http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero"><code>SameValueZero</code></a>
for equality comparisons.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>arrays<span class="br0">&#93;</span></code> <em>(…Array)</em>: The arrays to inspect.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of combined values.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">union</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [2, 1, 4]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="unionBy"></a><code>_.<span class="me1">unionBy</span><span class="br0">&#40;</span><span class="br0">&#91;</span>arrays<span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#unionBy">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6783" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.unionby" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#union"><code>_.<span class="me1">union</span></code></a> except that it accepts <code>iteratee</code> which is
invoked for each element of each <code>arrays</code> to generate the criterion by which
uniqueness is computed. The iteratee is invoked with one argument: (value).</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>arrays<span class="br0">&#93;</span></code> <em>(…Array)</em>: The arrays to inspect.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The iteratee invoked per element.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of combined values.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">unionBy</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">2.1</span><span class="sy0">,</span> <span class="nu0">1.2</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">4.3</span><span class="sy0">,</span> <span class="nu0">2.4</span><span class="br0">&#93;</span><span class="sy0">,</span> Math.<span class="me1">floor</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [2.1, 1.2, 4.3]</span><br><br><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">unionBy</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="st0">'x'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [{ 'x': 1 }, { 'x': 2 }]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="unionWith"></a><code>_.<span class="me1">unionWith</span><span class="br0">&#40;</span><span class="br0">&#91;</span>arrays<span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>comparator<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#unionWith">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6810" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.unionwith" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#union"><code>_.<span class="me1">union</span></code></a> except that it accepts <code>comparator</code> which
is invoked to compare elements of <code>arrays</code>. The comparator is invoked
with two arguments: (arrVal, othVal).</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>arrays<span class="br0">&#93;</span></code> <em>(…Array)</em>: The arrays to inspect.</li>
<li><code><span class="br0">&#91;</span>comparator<span class="br0">&#93;</span></code> <em>(Function)</em>: The comparator invoked per element.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of combined values.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> objects <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'y'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="st0">'y'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">;</span><br><span class="kw2">var</span> others <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'y'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'y'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">unionWith</span><span class="br0">&#40;</span>objects<span class="sy0">,</span> others<span class="sy0">,</span> _.<span class="me1">isEqual</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="uniq"></a><code>_.<span class="me1">uniq</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span></code></h3>
<p><a href="#uniq">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6834" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.uniq" title="See the npm package">&#x24C3;</a></p>
<p>Creates a duplicate-free version of an array, using
<a href="http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero"><code>SameValueZero</code></a>
for equality comparisons, in which only the first occurrence of each element
is kept.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to inspect.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new duplicate free array.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">uniq</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [2, 1]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="uniqBy"></a><code>_.<span class="me1">uniqBy</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#uniqBy">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6860" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.uniqby" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#uniq"><code>_.<span class="me1">uniq</span></code></a> except that it accepts <code>iteratee</code> which is
invoked for each element in <code>array</code> to generate the criterion by which
uniqueness is computed. The iteratee is invoked with one argument: (value).</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to inspect.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The iteratee invoked per element.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new duplicate free array.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">uniqBy</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">2.1</span><span class="sy0">,</span> <span class="nu0">1.2</span><span class="sy0">,</span> <span class="nu0">2.3</span><span class="br0">&#93;</span><span class="sy0">,</span> Math.<span class="me1">floor</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [2.1, 1.2]</span><br><br><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">uniqBy</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="st0">'x'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [{ 'x': 1 }, { 'x': 2 }]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="uniqWith"></a><code>_.<span class="me1">uniqWith</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>comparator<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#uniqWith">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6884" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.uniqwith" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#uniq"><code>_.<span class="me1">uniq</span></code></a> except that it accepts <code>comparator</code> which
is invoked to compare elements of <code>array</code>. The comparator is invoked with
two arguments: (arrVal, othVal).</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to inspect.</li>
<li><code><span class="br0">&#91;</span>comparator<span class="br0">&#93;</span></code> <em>(Function)</em>: The comparator invoked per element.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new duplicate free array.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> objects <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'y'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="st0">'y'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="sy0">,</span> &nbsp;<span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'y'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">uniqWith</span><span class="br0">&#40;</span>objects<span class="sy0">,</span> _.<span class="me1">isEqual</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="unzip"></a><code>_.<span class="me1">unzip</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span></code></h3>
<p><a href="#unzip">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6908" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.unzip" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#zip"><code>_.<span class="me1">zip</span></code></a> except that it accepts an array of grouped
elements and creates an array regrouping the elements to their pre-zip
configuration.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array of grouped elements to process.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of regrouped elements.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> zipped <span class="sy0">=</span> _.<span class="me1">zip</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="st0">'fred'</span><span class="sy0">,</span> <span class="st0">'barney'</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">30</span><span class="sy0">,</span> <span class="nu0">40</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="kw2">true</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [['fred', 30, true], ['barney', 40, false]]</span><br><br>_.<span class="me1">unzip</span><span class="br0">&#40;</span>zipped<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [['fred', 'barney'], [30, 40], [true, false]]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="unzipWith"></a><code>_.<span class="me1">unzipWith</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#unzipWith">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6943" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.unzipwith" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#unzip"><code>_.<span class="me1">unzip</span></code></a> except that it accepts <code>iteratee</code> to specify
how regrouped values should be combined. The iteratee is invoked with the
elements of each group: (…group).</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array of grouped elements to process.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function)</em>: The function to combine regrouped values.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of regrouped elements.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> zipped <span class="sy0">=</span> _.<span class="me1">zip</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">10</span><span class="sy0">,</span> <span class="nu0">20</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">100</span><span class="sy0">,</span> <span class="nu0">200</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [[1, 10, 100], [2, 20, 200]]</span><br><br>_.<span class="me1">unzipWith</span><span class="br0">&#40;</span>zipped<span class="sy0">,</span> _.<span class="me1">add</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [3, 30, 300]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="without"></a><code>_.<span class="me1">without</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>values<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#without">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6972" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.without" title="See the npm package">&#x24C3;</a></p>
<p>Creates an array excluding all given values using
<a href="http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero"><code>SameValueZero</code></a>
for equality comparisons.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to filter.</li>
<li><code><span class="br0">&#91;</span>values<span class="br0">&#93;</span></code> <em>(…&#42;)</em>: The values to exclude.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of filtered values.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">without</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [3]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="xor"></a><code>_.<span class="me1">xor</span><span class="br0">&#40;</span><span class="br0">&#91;</span>arrays<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#xor">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L6992" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.xor" title="See the npm package">&#x24C3;</a></p>
<p>Creates an array of unique values that is the <a href="https://en.wikipedia.org/wiki/Symmetric_difference">symmetric difference</a>
of the given arrays.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>arrays<span class="br0">&#93;</span></code> <em>(…Array)</em>: The arrays to inspect.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of values.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">xor</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 4]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="xorBy"></a><code>_.<span class="me1">xorBy</span><span class="br0">&#40;</span><span class="br0">&#91;</span>arrays<span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#xorBy">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7016" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.xorby" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#xor"><code>_.<span class="me1">xor</span></code></a> except that it accepts <code>iteratee</code> which is
invoked for each element of each <code>arrays</code> to generate the criterion by which
uniqueness is computed. The iteratee is invoked with one argument: (value).</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>arrays<span class="br0">&#93;</span></code> <em>(…Array)</em>: The arrays to inspect.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The iteratee invoked per element.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of values.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">xorBy</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">2.1</span><span class="sy0">,</span> <span class="nu0">1.2</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">4.3</span><span class="sy0">,</span> <span class="nu0">2.4</span><span class="br0">&#93;</span><span class="sy0">,</span> Math.<span class="me1">floor</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1.2, 4.3]</span><br><br><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">xorBy</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="st0">'x'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [{ 'x': 2 }]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="xorWith"></a><code>_.<span class="me1">xorWith</span><span class="br0">&#40;</span><span class="br0">&#91;</span>arrays<span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>comparator<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#xorWith">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7043" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.xorwith" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#xor"><code>_.<span class="me1">xor</span></code></a> except that it accepts <code>comparator</code> which is
invoked to compare elements of <code>arrays</code>. The comparator is invoked with
two arguments: (arrVal, othVal).</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>arrays<span class="br0">&#93;</span></code> <em>(…Array)</em>: The arrays to inspect.</li>
<li><code><span class="br0">&#91;</span>comparator<span class="br0">&#93;</span></code> <em>(Function)</em>: The comparator invoked per element.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of values.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> objects <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'y'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="st0">'y'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">;</span><br><span class="kw2">var</span> others <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'y'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'y'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">xorWith</span><span class="br0">&#40;</span>objects<span class="sy0">,</span> others<span class="sy0">,</span> _.<span class="me1">isEqual</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="zip"></a><code>_.<span class="me1">zip</span><span class="br0">&#40;</span><span class="br0">&#91;</span>arrays<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#zip">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7066" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.zip" title="See the npm package">&#x24C3;</a></p>
<p>Creates an array of grouped elements, the first of which contains the first
elements of the given arrays, the second of which contains the second elements
of the given arrays, and so on.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>arrays<span class="br0">&#93;</span></code> <em>(…Array)</em>: The arrays to process.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of grouped elements.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">zip</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="st0">'fred'</span><span class="sy0">,</span> <span class="st0">'barney'</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">30</span><span class="sy0">,</span> <span class="nu0">40</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="kw2">true</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [['fred', 30, true], ['barney', 40, false]]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="zipObject"></a><code>_.<span class="me1">zipObject</span><span class="br0">&#40;</span><span class="br0">&#91;</span>props<span class="sy0">=</span><span class="br0">&#91;</span><span class="br0">&#93;</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>values<span class="sy0">=</span><span class="br0">&#91;</span><span class="br0">&#93;</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#zipObject">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7083" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.zipobject" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#fromPairs"><code>_.<span class="me1">fromPairs</span></code></a> except that it accepts two arrays,
one of property names and one of corresponding values.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>props<span class="sy0">=</span><span class="br0">&#91;</span><span class="br0">&#93;</span><span class="br0">&#93;</span></code> <em>(Array)</em>: The property names.</li>
<li><code><span class="br0">&#91;</span>values<span class="sy0">=</span><span class="br0">&#91;</span><span class="br0">&#93;</span><span class="br0">&#93;</span></code> <em>(Array)</em>: The property values.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new object.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">zipObject</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'a': 1, 'b': 2 }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="zipObjectDeep"></a><code>_.<span class="me1">zipObjectDeep</span><span class="br0">&#40;</span><span class="br0">&#91;</span>props<span class="sy0">=</span><span class="br0">&#91;</span><span class="br0">&#93;</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>values<span class="sy0">=</span><span class="br0">&#91;</span><span class="br0">&#93;</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#zipObjectDeep">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7101" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.zipobjectdeep" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#zipObject"><code>_.<span class="me1">zipObject</span></code></a> except that it supports property paths.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>props<span class="sy0">=</span><span class="br0">&#91;</span><span class="br0">&#93;</span><span class="br0">&#93;</span></code> <em>(Array)</em>: The property names.</li>
<li><code><span class="br0">&#91;</span>values<span class="sy0">=</span><span class="br0">&#91;</span><span class="br0">&#93;</span><span class="br0">&#93;</span></code> <em>(Array)</em>: The property values.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new object.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">zipObjectDeep</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="st0">'a.b[0].c'</span><span class="sy0">,</span> <span class="st0">'a.b[1].d'</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="zipWith"></a><code>_.<span class="me1">zipWith</span><span class="br0">&#40;</span><span class="br0">&#91;</span>arrays<span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#zipWith">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7123" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.zipwith" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#zip"><code>_.<span class="me1">zip</span></code></a> except that it accepts <code>iteratee</code> to specify
how grouped values should be combined. The iteratee is invoked with the
elements of each group: (…group).</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>arrays<span class="br0">&#93;</span></code> <em>(…Array)</em>: The arrays to process.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function)</em>: The function to combine grouped values.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of grouped elements.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">zipWith</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">10</span><span class="sy0">,</span> <span class="nu0">20</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">100</span><span class="sy0">,</span> <span class="nu0">200</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>a<span class="sy0">,</span> b<span class="sy0">,</span> c<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> a <span class="sy0">+</span> b <span class="sy0">+</span> c<span class="sy0">;</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [111, 222]</span></code></pre>
<hr />
</div>
</div>
<div>
<h2><code>“Collection” Methods</code></h2>
<div>
<h3><a id="countBy"></a><code>_.<span class="me1">countBy</span><span class="br0">&#40;</span>collection<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#countBy">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7514" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.countby" title="See the npm package">&#x24C3;</a></p>
<p>Creates an object composed of keys generated from the results of running
each element of <code>collection</code> through <code>iteratee</code>. The corresponding value
of each key is the number of times the key was returned by <code>iteratee</code>.
The iteratee is invoked with one argument: (value).</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object)</em>: The collection to iterate over.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The iteratee to transform keys.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the composed aggregate object.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">countBy</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">6.1</span><span class="sy0">,</span> <span class="nu0">4.2</span><span class="sy0">,</span> <span class="nu0">6.3</span><span class="br0">&#93;</span><span class="sy0">,</span> Math.<span class="me1">floor</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { '4': 1, '6': 2 }</span><br><br>_.<span class="me1">countBy</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="st0">'one'</span><span class="sy0">,</span> <span class="st0">'two'</span><span class="sy0">,</span> <span class="st0">'three'</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="st0">'length'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { '3': 2, '5': 1 }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="every"></a><code>_.<span class="me1">every</span><span class="br0">&#40;</span>collection<span class="sy0">,</span> <span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#every">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7552" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.every" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>predicate</code> returns truthy for <strong>all</strong> elements of <code>collection</code>.
Iteration is stopped once <code>predicate</code> returns falsey. The predicate is
invoked with three arguments: (value, index|key, collection).</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object)</em>: The collection to iterate over.</li>
<li><code><span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if all elements pass the predicate check, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">every</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="kw2">true</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="kw2">null</span><span class="sy0">,</span> <span class="st0">'yes'</span><span class="br0">&#93;</span><span class="sy0">,</span> Boolean<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">&#91;</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><br><span class="br0">&#93;</span><span class="sy0">;</span><br><br><span class="co1">// The `_.matches` iteratee shorthand.</span><br>_.<span class="me1">every</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br><span class="co1">// The `_.matchesProperty` iteratee shorthand.</span><br>_.<span class="me1">every</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">every</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="filter"></a><code>_.<span class="me1">filter</span><span class="br0">&#40;</span>collection<span class="sy0">,</span> <span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#filter">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7593" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.filter" title="See the npm package">&#x24C3;</a></p>
<p>Iterates over elements of <code>collection</code>, returning an array of all elements
<code>predicate</code> returns truthy for. The predicate is invoked with three arguments:<br>
(value, index|key, collection).</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object)</em>: The collection to iterate over.</li>
<li><code><span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new filtered array.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">&#91;</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><br><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">filter</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>o<span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw1">return</span> <span class="sy0">!</span>o.<span class="me1">active</span><span class="sy0">;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for ['fred']</span><br><br><span class="co1">// The `_.matches` iteratee shorthand.</span><br>_.<span class="me1">filter</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for ['barney']</span><br><br><span class="co1">// The `_.matchesProperty` iteratee shorthand.</span><br>_.<span class="me1">filter</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for ['fred']</span><br><br><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">filter</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for ['barney']</span></code></pre>
<hr />
</div>
<div>
<h3><a id="find"></a><code>_.<span class="me1">find</span><span class="br0">&#40;</span>collection<span class="sy0">,</span> <span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#find">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7632" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.find" title="See the npm package">&#x24C3;</a></p>
<p>Iterates over elements of <code>collection</code>, returning the first element
<code>predicate</code> returns truthy for. The predicate is invoked with three arguments:<br>
(value, index|key, collection).</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object)</em>: The collection to search.</li>
<li><code><span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(&#42;)</em>:  Returns the matched element, else <code>undefined</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">&#91;</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> &nbsp;<span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; &nbsp;<span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">&#125;</span><br><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">find</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>o<span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw1">return</span> o.<span class="me1">age</span> <span class="sy0">&lt;</span> <span class="nu0">40</span><span class="sy0">;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → object for 'barney'</span><br><br><span class="co1">// The `_.matches` iteratee shorthand.</span><br>_.<span class="me1">find</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → object for 'pebbles'</span><br><br><span class="co1">// The `_.matchesProperty` iteratee shorthand.</span><br>_.<span class="me1">find</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → object for 'fred'</span><br><br><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">find</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → object for 'barney'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="findLast"></a><code>_.<span class="me1">findLast</span><span class="br0">&#40;</span>collection<span class="sy0">,</span> <span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#findLast">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7658" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.findlast" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#find"><code>_.<span class="me1">find</span></code></a> except that it iterates over elements of
<code>collection</code> from right to left.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object)</em>: The collection to search.</li>
<li><code><span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(&#42;)</em>:  Returns the matched element, else <code>undefined</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">findLast</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>n<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">%</span> <span class="nu0">2</span> <span class="sy0">==</span> <span class="nu0">1</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 3</span></code></pre>
<hr />
</div>
<div>
<h3><a id="flatMap"></a><code>_.<span class="me1">flatMap</span><span class="br0">&#40;</span>collection<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#flatMap">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7687" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.flatmap" title="See the npm package">&#x24C3;</a></p>
<p>Creates an array of flattened values by running each element in <code>collection</code>
through <code>iteratee</code> and concating its result to the other mapped values.
The iteratee is invoked with three arguments: (value, index|key, collection).</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object)</em>: The collection to iterate over.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new flattened array.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> duplicate<span class="br0">&#40;</span>n<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> <span class="br0">&#91;</span>n<span class="sy0">,</span> n<span class="br0">&#93;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br>_.<span class="me1">flatMap</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="sy0">,</span> duplicate<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 1, 2, 2]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="forEach"></a><code>_.<span class="me1">forEach</span><span class="br0">&#40;</span>collection<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#forEach">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7719" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.foreach" title="See the npm package">&#x24C3;</a></p>
<p>Iterates over elements of <code>collection</code> invoking <code>iteratee</code> for each element.
The iteratee is invoked with three arguments: (value, index|key, collection).
Iteratee functions may exit iteration early by explicitly returning <code><span class="kw2">false</span></code>.
<br>
<br>
<strong>Note:</strong> As with other "Collections" methods, objects with a "length" property
are iterated like arrays. To avoid this behavior use <a href="#forIn"><code>_.<span class="me1">forIn</span></code></a> or <a href="#forOwn"><code>_.<span class="me1">forOwn</span></code></a>
for object iteration.</p>
<h4>Aliases</h4>
<p><em>_.each</em></p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object)</em>: The collection to iterate over.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array|Object)</em>:  Returns <code>collection</code>.</p>
<h4>Example</h4>
<pre><code>_<span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="br0">&#41;</span>.<span class="me1">forEach</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; console.<span class="me1">log</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → logs `1` then `2`</span><br><br>_.<span class="me1">forEach</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>value<span class="sy0">,</span> key<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; console.<span class="me1">log</span><span class="br0">&#40;</span>key<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → logs 'a' then 'b' (iteration order is not guaranteed)</span></code></pre>
<hr />
</div>
<div>
<h3><a id="forEachRight"></a><code>_.<span class="me1">forEachRight</span><span class="br0">&#40;</span>collection<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#forEachRight">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7743" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.foreachright" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#forEach"><code>_.<span class="me1">forEach</span></code></a> except that it iterates over elements of
<code>collection</code> from right to left.</p>
<h4>Aliases</h4>
<p><em>_.eachRight</em></p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object)</em>: The collection to iterate over.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array|Object)</em>:  Returns <code>collection</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">forEachRight</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; console.<span class="me1">log</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → logs `2` then `1`</span></code></pre>
<hr />
</div>
<div>
<h3><a id="groupBy"></a><code>_.<span class="me1">groupBy</span><span class="br0">&#40;</span>collection<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#groupBy">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7770" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.groupby" title="See the npm package">&#x24C3;</a></p>
<p>Creates an object composed of keys generated from the results of running
each element of <code>collection</code> through <code>iteratee</code>. The corresponding value
of each key is an array of elements responsible for generating the key.
The iteratee is invoked with one argument: (value).</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object)</em>: The collection to iterate over.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The iteratee to transform keys.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the composed aggregate object.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">groupBy</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">6.1</span><span class="sy0">,</span> <span class="nu0">4.2</span><span class="sy0">,</span> <span class="nu0">6.3</span><span class="br0">&#93;</span><span class="sy0">,</span> Math.<span class="me1">floor</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { '4': [4.2], '6': [6.1, 6.3] }</span><br><br><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">groupBy</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="st0">'one'</span><span class="sy0">,</span> <span class="st0">'two'</span><span class="sy0">,</span> <span class="st0">'three'</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="st0">'length'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { '3': ['one', 'two'], '5': ['three'] }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="includes"></a><code>_.<span class="me1">includes</span><span class="br0">&#40;</span>collection<span class="sy0">,</span> value<span class="sy0">,</span> <span class="br0">&#91;</span>fromIndex<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#includes">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7806" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.includes" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is in <code>collection</code>. If <code>collection</code> is a string it’s checked
for a substring of <code>value</code>, otherwise <a href="http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero"><code>SameValueZero</code></a>
is used for equality comparisons. If <code>fromIndex</code> is negative, it’s used as
the offset from the end of <code>collection</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to search.</li>
<li><code>value</code> <em>(&#42;)</em>: The value to search for.</li>
<li><code><span class="br0">&#91;</span>fromIndex<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span></code> <em>(number)</em>: The index to search from.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is found, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">includes</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">includes</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">includes</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="st0">'fred'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">includes</span><span class="br0">&#40;</span><span class="st0">'pebbles'</span><span class="sy0">,</span> <span class="st0">'eb'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr />
</div>
<div>
<h3><a id="invokeMap"></a><code>_.<span class="me1">invokeMap</span><span class="br0">&#40;</span>collection<span class="sy0">,</span> path<span class="sy0">,</span> <span class="br0">&#91;</span>args<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#invokeMap">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7841" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.invokemap" title="See the npm package">&#x24C3;</a></p>
<p>Invokes the method at <code>path</code> of each element in <code>collection</code>, returning
an array of the results of each invoked method. Any additional arguments
are provided to each invoked method. If <code>methodName</code> is a function it’s
invoked for, and <code><span class="kw1">this</span></code> bound to, each element in <code>collection</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object)</em>: The collection to iterate over.</li>
<li><code>path</code> <em>(Array|Function|string)</em>: The path of the method to invoke or the function invoked per iteration.</li>
<li><code><span class="br0">&#91;</span>args<span class="br0">&#93;</span></code> <em>(…&#42;)</em>: The arguments to invoke each method with.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the array of results.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">invokeMap</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="br0">&#91;</span><span class="nu0">5</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">7</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">&#93;</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="st0">'sort'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [[1, 5, 7], [1, 2, 3]]</span><br><br>_.<span class="me1">invokeMap</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">123</span><span class="sy0">,</span> <span class="nu0">456</span><span class="br0">&#93;</span><span class="sy0">,</span> String.<span class="me1">prototype</span>.<span class="me1">split</span><span class="sy0">,</span> <span class="st0">''</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [['1', '2', '3'], ['4', '5', '6']]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="keyBy"></a><code>_.<span class="me1">keyBy</span><span class="br0">&#40;</span>collection<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#keyBy">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7881" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.keyby" title="See the npm package">&#x24C3;</a></p>
<p>Creates an object composed of keys generated from the results of running
each element of <code>collection</code> through <code>iteratee</code>. The corresponding value
of each key is the last element responsible for generating the key. The
iteratee is invoked with one argument: (value).</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object)</em>: The collection to iterate over.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The iteratee to transform keys.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the composed aggregate object.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> array <span class="sy0">=</span> <span class="br0">&#91;</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'dir'</span><span class="sy0">:</span> <span class="st0">'left'</span><span class="sy0">,</span> <span class="st0">'code'</span><span class="sy0">:</span> <span class="nu0">97</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'dir'</span><span class="sy0">:</span> <span class="st0">'right'</span><span class="sy0">,</span> <span class="st0">'code'</span><span class="sy0">:</span> <span class="nu0">100</span> <span class="br0">&#125;</span><br><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">keyBy</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>o<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> String.<span class="me1">fromCharCode</span><span class="br0">&#40;</span>o.<span class="me1">code</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }</span><br><br>_.<span class="me1">keyBy</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="st0">'dir'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="map"></a><code>_.<span class="me1">map</span><span class="br0">&#40;</span>collection<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#map">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7926" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.map" title="See the npm package">&#x24C3;</a></p>
<p>Creates an array of values by running each element in <code>collection</code> through
<code>iteratee</code>. The iteratee is invoked with three arguments:<br>
(value, index|key, collection).
<br>
<br>
Many lodash methods are guarded to work as iteratees for methods like
<a href="#every"><code>_.<span class="me1">every</span></code></a>, <a href="#filter"><code>_.<span class="me1">filter</span></code></a>, <a href="#map"><code>_.<span class="me1">map</span></code></a>, <a href="#mapValues"><code>_.<span class="me1">mapValues</span></code></a>, <a href="#reject"><code>_.<span class="me1">reject</span></code></a>, and <a href="#some"><code>_.<span class="me1">some</span></code></a>.
<br>
<br>
The guarded methods are:<br>
<code>ary</code>, <code>curry</code>, <code>curryRight</code>, <code>drop</code>, <code>dropRight</code>, <code>every</code>, <code>fill</code>,
<code>invert</code>, <code>parseInt</code>, <code>random</code>, <code>range</code>, <code>rangeRight</code>, <code>slice</code>, <code>some</code>,
<code>sortBy</code>, <code>take</code>, <code>takeRight</code>, <code>template</code>, <code>trim</code>, <code>trimEnd</code>, <code>trimStart</code>,
and <code>words</code></p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object)</em>: The collection to iterate over.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new mapped array.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> square<span class="br0">&#40;</span>n<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">*</span> n<span class="sy0">;</span><br><span class="br0">&#125;</span><br><br>_.<span class="me1">map</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">8</span><span class="br0">&#93;</span><span class="sy0">,</span> square<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [16, 64]</span><br><br>_.<span class="me1">map</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">4</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="nu0">8</span> <span class="br0">&#125;</span><span class="sy0">,</span> square<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [16, 64] (iteration order is not guaranteed)</span><br><br><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">&#91;</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">&#125;</span><br><span class="br0">&#93;</span><span class="sy0">;</span><br><br><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">map</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ['barney', 'fred']</span></code></pre>
<hr />
</div>
<div>
<h3><a id="orderBy"></a><code>_.<span class="me1">orderBy</span><span class="br0">&#40;</span>collection<span class="sy0">,</span> <span class="br0">&#91;</span>iteratees<span class="sy0">=</span><span class="br0">&#91;</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>orders<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#orderBy">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7958" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.orderby" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#sortBy"><code>_.<span class="me1">sortBy</span></code></a> except that it allows specifying the sort
orders of the iteratees to sort by. If <code>orders</code> is unspecified, all values
are sorted in ascending order. Otherwise, specify an order of "desc" for
descending or "asc" for ascending sort order of corresponding values.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object)</em>: The collection to iterate over.</li>
<li><code><span class="br0">&#91;</span>iteratees<span class="sy0">=</span><span class="br0">&#91;</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#93;</span></code> <em>(Function&#91;&#93;|Object&#91;&#93;|string&#91;&#93;)</em>: The iteratees to sort by.</li>
<li><code><span class="br0">&#91;</span>orders<span class="br0">&#93;</span></code> <em>(string&#91;&#93;)</em>: The sort orders of <code>iteratees</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new sorted array.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">&#91;</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">48</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">34</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">42</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span> <span class="br0">&#125;</span><br><span class="br0">&#93;</span><span class="sy0">;</span><br><br><span class="co1">// Sort by `user` in ascending order and by `age` in descending order.</span><br>_.<span class="me1">orderBy</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'user'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'asc'</span><span class="sy0">,</span> <span class="st0">'desc'</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 42]]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="partition"></a><code>_.<span class="me1">partition</span><span class="br0">&#40;</span>collection<span class="sy0">,</span> <span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#partition">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L8007" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.partition" title="See the npm package">&#x24C3;</a></p>
<p>Creates an array of elements split into two groups, the first of which
contains elements <code>predicate</code> returns truthy for, the second of which
contains elements <code>predicate</code> returns falsey for. The predicate is
invoked with one argument: (value).</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object)</em>: The collection to iterate over.</li>
<li><code><span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the array of grouped elements.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">&#91;</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> &nbsp;<span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; &nbsp;<span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><br><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">partition</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>o<span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw1">return</span> o.<span class="me1">active</span><span class="sy0">;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for [['fred'], ['barney', 'pebbles']]</span><br><br><span class="co1">// The `_.matches` iteratee shorthand.</span><br>_.<span class="me1">partition</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for [['pebbles'], ['barney', 'fred']]</span><br><br><span class="co1">// The `_.matchesProperty` iteratee shorthand.</span><br>_.<span class="me1">partition</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for [['barney', 'pebbles'], ['fred']]</span><br><br><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">partition</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for [['fred'], ['barney', 'pebbles']]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="reduce"></a><code>_.<span class="me1">reduce</span><span class="br0">&#40;</span>collection<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>accumulator<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#reduce">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L8046" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.reduce" title="See the npm package">&#x24C3;</a></p>
<p>Reduces <code>collection</code> to a value which is the accumulated result of running
each element in <code>collection</code> through <code>iteratee</code>, where each successive
invocation is supplied the return value of the previous. If <code>accumulator</code>
is not given the first element of <code>collection</code> is used as the initial
value. The iteratee is invoked with four arguments:<br>
(accumulator, value, index|key, collection).
<br>
<br>
Many lodash methods are guarded to work as iteratees for methods like
<a href="#reduce"><code>_.<span class="me1">reduce</span></code></a>, <a href="#reduceRight"><code>_.<span class="me1">reduceRight</span></code></a>, and <a href="#transform"><code>_.<span class="me1">transform</span></code></a>.
<br>
<br>
The guarded methods are:<br>
<code>assign</code>, <code>defaults</code>, <code>defaultsDeep</code>, <code>includes</code>, <code>merge</code>, <code>orderBy</code>,
and <code>sortBy</code></p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object)</em>: The collection to iterate over.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">&#91;</span>accumulator<span class="br0">&#93;</span></code> <em>(&#42;)</em>: The initial value.</li>
</ol>
<h4>Returns</h4>
<p><em>(&#42;)</em>:  Returns the accumulated value.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">reduce</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>sum<span class="sy0">,</span> n<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> sum <span class="sy0">+</span> n<span class="sy0">;</span><br><span class="br0">&#125;</span><span class="sy0">,</span> <span class="nu0">0</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 3</span><br><br>_.<span class="me1">reduce</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>result<span class="sy0">,</span> value<span class="sy0">,</span> key<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="br0">&#40;</span>result<span class="br0">&#91;</span>value<span class="br0">&#93;</span> <span class="sy0">||</span> <span class="br0">&#40;</span>result<span class="br0">&#91;</span>value<span class="br0">&#93;</span> <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>.<span class="me1">push</span><span class="br0">&#40;</span>key<span class="br0">&#41;</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">return</span> result<span class="sy0">;</span><br><span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)</span></code></pre>
<hr />
</div>
<div>
<h3><a id="reduceRight"></a><code>_.<span class="me1">reduceRight</span><span class="br0">&#40;</span>collection<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>accumulator<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#reduceRight">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L8073" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.reduceright" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#reduce"><code>_.<span class="me1">reduce</span></code></a> except that it iterates over elements of
<code>collection</code> from right to left.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object)</em>: The collection to iterate over.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">&#91;</span>accumulator<span class="br0">&#93;</span></code> <em>(&#42;)</em>: The initial value.</li>
</ol>
<h4>Returns</h4>
<p><em>(&#42;)</em>:  Returns the accumulated value.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> array <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">&#93;</span><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">reduceRight</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>flattened<span class="sy0">,</span> other<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> flattened.<span class="me1">concat</span><span class="br0">&#40;</span>other<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [4, 5, 2, 3, 0, 1]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="reject"></a><code>_.<span class="me1">reject</span><span class="br0">&#40;</span>collection<span class="sy0">,</span> <span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#reject">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L8112" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.reject" title="See the npm package">&#x24C3;</a></p>
<p>The opposite of <a href="#filter"><code>_.<span class="me1">filter</span></code></a>; this method returns the elements of <code>collection</code>
that <code>predicate</code> does <strong>not</strong> return truthy for.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object)</em>: The collection to iterate over.</li>
<li><code><span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new filtered array.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">&#91;</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">&#125;</span><br><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">reject</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>o<span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw1">return</span> <span class="sy0">!</span>o.<span class="me1">active</span><span class="sy0">;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for ['fred']</span><br><br><span class="co1">// The `_.matches` iteratee shorthand.</span><br>_.<span class="me1">reject</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for ['barney']</span><br><br><span class="co1">// The `_.matchesProperty` iteratee shorthand.</span><br>_.<span class="me1">reject</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for ['fred']</span><br><br><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">reject</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for ['barney']</span></code></pre>
<hr />
</div>
<div>
<h3><a id="sample"></a><code>_.<span class="me1">sample</span><span class="br0">&#40;</span>collection<span class="br0">&#41;</span></code></h3>
<p><a href="#sample">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L8133" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.sample" title="See the npm package">&#x24C3;</a></p>
<p>Gets a random element from <code>collection</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object)</em>: The collection to sample.</li>
</ol>
<h4>Returns</h4>
<p><em>(&#42;)</em>:  Returns the random element.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">sample</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 2</span></code></pre>
<hr />
</div>
<div>
<h3><a id="sampleSize"></a><code>_.<span class="me1">sampleSize</span><span class="br0">&#40;</span>collection<span class="sy0">,</span> <span class="br0">&#91;</span>n<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#sampleSize">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L8158" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.samplesize" title="See the npm package">&#x24C3;</a></p>
<p>Gets <code>n</code> random elements at unique keys from <code>collection</code> up to the
size of <code>collection</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object)</em>: The collection to sample.</li>
<li><code><span class="br0">&#91;</span>n<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span></code> <em>(number)</em>: The number of elements to sample.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the random elements.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">sampleSize</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [3, 1]</span><br><br>_.<span class="me1">sampleSize</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [2, 3, 1]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="shuffle"></a><code>_.<span class="me1">shuffle</span><span class="br0">&#40;</span>collection<span class="br0">&#41;</span></code></h3>
<p><a href="#shuffle">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L8190" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.shuffle" title="See the npm package">&#x24C3;</a></p>
<p>Creates an array of shuffled values, using a version of the
<a href="https://en.wikipedia.org/wiki/Fisher-Yates_shuffle">Fisher-Yates shuffle</a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object)</em>: The collection to shuffle.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new shuffled array.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">shuffle</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [4, 1, 3, 2]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="size"></a><code>_.<span class="me1">size</span><span class="br0">&#40;</span>collection<span class="br0">&#41;</span></code></h3>
<p><a href="#size">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L8214" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.size" title="See the npm package">&#x24C3;</a></p>
<p>Gets the size of <code>collection</code> by returning its length for array-like
values or the number of own enumerable properties for objects.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object)</em>: The collection to inspect.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the collection size.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">size</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 3</span><br><br>_.<span class="me1">size</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 2</span><br><br>_.<span class="me1">size</span><span class="br0">&#40;</span><span class="st0">'pebbles'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 7</span></code></pre>
<hr />
</div>
<div>
<h3><a id="some"></a><code>_.<span class="me1">some</span><span class="br0">&#40;</span>collection<span class="sy0">,</span> <span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#some">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L8259" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.some" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>predicate</code> returns truthy for <strong>any</strong> element of <code>collection</code>.
Iteration is stopped once <code>predicate</code> returns truthy. The predicate is
invoked with three arguments: (value, index|key, collection).</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object)</em>: The collection to iterate over.</li>
<li><code><span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if any element passes the predicate check, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">some</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="kw2">null</span><span class="sy0">,</span> <span class="nu0">0</span><span class="sy0">,</span> <span class="st0">'yes'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">&#93;</span><span class="sy0">,</span> Boolean<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">&#91;</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><br><span class="br0">&#93;</span><span class="sy0">;</span><br><br><span class="co1">// The `_.matches` iteratee shorthand.</span><br>_.<span class="me1">some</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br><span class="co1">// The `_.matchesProperty` iteratee shorthand.</span><br>_.<span class="me1">some</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">some</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr />
</div>
<div>
<h3><a id="sortBy"></a><code>_.<span class="me1">sortBy</span><span class="br0">&#40;</span>collection<span class="sy0">,</span> <span class="br0">&#91;</span>iteratees<span class="sy0">=</span><span class="br0">&#91;</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#sortBy">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L8300" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.sortby" title="See the npm package">&#x24C3;</a></p>
<p>Creates an array of elements, sorted in ascending order by the results of
running each element in a collection through each iteratee. This method
performs a stable sort, that is, it preserves the original sort order of
equal elements. The iteratees are invoked with one argument: (value).</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object)</em>: The collection to iterate over.</li>
<li><code><span class="br0">&#91;</span>iteratees<span class="sy0">=</span><span class="br0">&#91;</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#93;</span></code> <em>(…(Function|Function&#91;&#93;|Object|Object&#91;&#93;|string|string&#91;&#93;)</em>:  The iteratees to sort by, specified individually or in arrays.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new sorted array.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">&#91;</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">48</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">42</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">34</span> <span class="br0">&#125;</span><br><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">sortBy</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>o<span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw1">return</span> o.<span class="me1">user</span><span class="sy0">;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 42]]</span><br><br>_.<span class="me1">sortBy</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'user'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for [['barney', 34], ['barney', 36], ['fred', 42], ['fred', 48]]</span><br><br>_.<span class="me1">sortBy</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="st0">'user'</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>o<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> Math.<span class="me1">floor</span><span class="br0">&#40;</span>o.<span class="me1">age</span> <span class="sy0">/</span> <span class="nu0">10</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 42]]</span></code></pre>
<hr />
</div>
</div>
<div>
<h2><code>“Date” Methods</code></h2>
<div>
<h3><a id="now"></a><code>_.<span class="me1">now</span><span class="br0">&#40;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#now">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L8331" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.now" title="See the npm package">&#x24C3;</a></p>
<p>({Function}): Gets the timestamp of the number of milliseconds that have elapsed since
the Unix epoch (1 January 1970 00:00:00 UTC).</p>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the timestamp.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">defer</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span>stamp<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; console.<span class="me1">log</span><span class="br0">&#40;</span>_.<span class="me1">now</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="sy0">-</span> stamp<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="sy0">,</span> _.<span class="me1">now</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → logs the number of milliseconds it took for the deferred function to be invoked</span></code></pre>
<hr />
</div>
</div>
<div>
<h2><code>“<span class="kw2">Function</span>” Methods</code></h2>
<div>
<h3><a id="after"></a><code>_.<span class="me1">after</span><span class="br0">&#40;</span>n<span class="sy0">,</span> func<span class="br0">&#41;</span></code></h3>
<p><a href="#after">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L8358" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.after" title="See the npm package">&#x24C3;</a></p>
<p>The opposite of <a href="#before"><code>_.<span class="me1">before</span></code></a>; this method creates a function that invokes
<code>func</code> once it’s called <code>n</code> or more times.</p>
<h4>Arguments</h4>
<ol>
<li><code>n</code> <em>(number)</em>: The number of calls before <code>func</code> is invoked.</li>
<li><code>func</code> <em>(Function)</em>: The function to restrict.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new restricted function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> saves <span class="sy0">=</span> <span class="br0">&#91;</span><span class="st0">'profile'</span><span class="sy0">,</span> <span class="st0">'settings'</span><span class="br0">&#93;</span><span class="sy0">;</span><br><br><span class="kw2">var</span> done <span class="sy0">=</span> _.<span class="me1">after</span><span class="br0">&#40;</span>saves.<span class="me1">length</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; console.<span class="me1">log</span><span class="br0">&#40;</span><span class="st0">'done saving!'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br>_.<span class="me1">forEach</span><span class="br0">&#40;</span>saves<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>type<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; asyncSave<span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'type'</span><span class="sy0">:</span> type<span class="sy0">,</span> <span class="st0">'complete'</span><span class="sy0">:</span> done <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → logs 'done saving!' after the two async saves have completed</span></code></pre>
<hr />
</div>
<div>
<h3><a id="ary"></a><code>_.<span class="me1">ary</span><span class="br0">&#40;</span>func<span class="sy0">,</span> <span class="br0">&#91;</span>n<span class="sy0">=</span>func.<span class="me1">length</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#ary">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L8386" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.ary" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that accepts up to <code>n</code> arguments, ignoring any
additional arguments.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to cap arguments for.</li>
<li><code><span class="br0">&#91;</span>n<span class="sy0">=</span>func.<span class="me1">length</span><span class="br0">&#93;</span></code> <em>(number)</em>: The arity cap.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">map</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="st0">'6'</span><span class="sy0">,</span> <span class="st0">'8'</span><span class="sy0">,</span> <span class="st0">'10'</span><span class="br0">&#93;</span><span class="sy0">,</span> _.<span class="me1">ary</span><span class="br0">&#40;</span>parseInt<span class="sy0">,</span> <span class="nu0">1</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [6, 8, 10]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="before"></a><code>_.<span class="me1">before</span><span class="br0">&#40;</span>n<span class="sy0">,</span> func<span class="br0">&#41;</span></code></h3>
<p><a href="#before">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L8408" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.before" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that invokes <code>func</code>, with the <code><span class="kw1">this</span></code> binding and arguments
of the created function, while it’s called less than <code>n</code> times. Subsequent
calls to the created function return the result of the last <code>func</code> invocation.</p>
<h4>Arguments</h4>
<ol>
<li><code>n</code> <em>(number)</em>: The number of calls at which <code>func</code> is no longer invoked.</li>
<li><code>func</code> <em>(Function)</em>: The function to restrict.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new restricted function.</p>
<h4>Example</h4>
<pre><code>jQuery<span class="br0">&#40;</span>element<span class="br0">&#41;</span>.<span class="me1">on</span><span class="br0">&#40;</span><span class="st0">'click'</span><span class="sy0">,</span> _.<span class="me1">before</span><span class="br0">&#40;</span><span class="nu0">5</span><span class="sy0">,</span> addContactToList<span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → allows adding up to 4 contacts to the list</span></code></pre>
<hr />
</div>
<div>
<h3><a id="bind"></a><code>_.<span class="me1">bind</span><span class="br0">&#40;</span>func<span class="sy0">,</span> thisArg<span class="sy0">,</span> <span class="br0">&#91;</span>partials<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#bind">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L8460" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.bind" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that invokes <code>func</code> with the <code><span class="kw1">this</span></code> binding of <code>thisArg</code>
and prepends any additional <a href="#bind"><code>_.<span class="me1">bind</span></code></a> arguments to those provided to the
bound function.
<br>
<br>
The <code>_.<span class="me1">bind</span>.<span class="me1">placeholder</span></code> value, which defaults to <code>_</code> in monolithic builds,
may be used as a placeholder for partially applied arguments.
<br>
<br>
<strong>Note:</strong> Unlike native <code><span class="kw2">Function</span>#<span class=me1>bind</span></code> this method doesn’t set the "length"
property of bound functions.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to bind.</li>
<li><code>thisArg</code> <em>(&#42;)</em>: The <code><span class="kw1">this</span></code> binding of <code>func</code>.</li>
<li><code><span class="br0">&#91;</span>partials<span class="br0">&#93;</span></code> <em>(…&#42;)</em>: The arguments to be partially applied.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new bound function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> greet <span class="sy0">=</span> <span class="kw2">function</span><span class="br0">&#40;</span>greeting<span class="sy0">,</span> punctuation<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> greeting <span class="sy0">+</span> <span class="st0">' '</span> <span class="sy0">+</span> <span class="kw1">this</span>.<span class="me1">user</span> <span class="sy0">+</span> punctuation<span class="sy0">;</span><br><span class="br0">&#125;</span><span class="sy0">;</span><br><br><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><br><span class="kw2">var</span> bound <span class="sy0">=</span> _.<span class="me1">bind</span><span class="br0">&#40;</span>greet<span class="sy0">,</span> object<span class="sy0">,</span> <span class="st0">'hi'</span><span class="br0">&#41;</span><span class="sy0">;</span><br>bound<span class="br0">&#40;</span><span class="st0">'!'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'hi fred!'</span><br><br><span class="co1">// Bound with placeholders.</span><br><span class="kw2">var</span> bound <span class="sy0">=</span> _.<span class="me1">bind</span><span class="br0">&#40;</span>greet<span class="sy0">,</span> object<span class="sy0">,</span> _<span class="sy0">,</span> <span class="st0">'!'</span><span class="br0">&#41;</span><span class="sy0">;</span><br>bound<span class="br0">&#40;</span><span class="st0">'hi'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'hi fred!'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="bindKey"></a><code>_.<span class="me1">bindKey</span><span class="br0">&#40;</span>object<span class="sy0">,</span> key<span class="sy0">,</span> <span class="br0">&#91;</span>partials<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#bindKey">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L8515" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.bindkey" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that invokes the method at <code>object<span class="br0">&#91;</span>key<span class="br0">&#93;</span></code> and prepends
any additional <a href="#bindKey"><code>_.<span class="me1">bindKey</span></code></a> arguments to those provided to the bound function.
<br>
<br>
This method differs from <a href="#bind"><code>_.<span class="me1">bind</span></code></a> by allowing bound functions to reference
methods that may be redefined or don’t yet exist.
See <a href="http://peter.michaux.ca/articles/lazy-function-definition-pattern">Peter Michaux’s article</a>
for more details.
<br>
<br>
The <code>_.<span class="me1">bindKey</span>.<span class="me1">placeholder</span></code> value, which defaults to <code>_</code> in monolithic
builds, may be used as a placeholder for partially applied arguments.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to invoke the method on.</li>
<li><code>key</code> <em>(string)</em>: The key of the method.</li>
<li><code><span class="br0">&#91;</span>partials<span class="br0">&#93;</span></code> <em>(…&#42;)</em>: The arguments to be partially applied.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new bound function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">&#123;</span><br>&nbsp; <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span><br>&nbsp; <span class="st0">'greet'</span><span class="sy0">:</span> <span class="kw2">function</span><span class="br0">&#40;</span>greeting<span class="sy0">,</span> punctuation<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; &nbsp; <span class="kw1">return</span> greeting <span class="sy0">+</span> <span class="st0">' '</span> <span class="sy0">+</span> <span class="kw1">this</span>.<span class="me1">user</span> <span class="sy0">+</span> punctuation<span class="sy0">;</span><br>&nbsp; <span class="br0">&#125;</span><br><span class="br0">&#125;</span><span class="sy0">;</span><br><br><span class="kw2">var</span> bound <span class="sy0">=</span> _.<span class="me1">bindKey</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="st0">'greet'</span><span class="sy0">,</span> <span class="st0">'hi'</span><span class="br0">&#41;</span><span class="sy0">;</span><br>bound<span class="br0">&#40;</span><span class="st0">'!'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'hi fred!'</span><br><br>object.<span class="me1">greet</span> <span class="sy0">=</span> <span class="kw2">function</span><span class="br0">&#40;</span>greeting<span class="sy0">,</span> punctuation<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> greeting <span class="sy0">+</span> <span class="st0">'ya '</span> <span class="sy0">+</span> <span class="kw1">this</span>.<span class="me1">user</span> <span class="sy0">+</span> punctuation<span class="sy0">;</span><br><span class="br0">&#125;</span><span class="sy0">;</span><br><br>bound<span class="br0">&#40;</span><span class="st0">'!'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'hiya fred!'</span><br><br><span class="co1">// Bound with placeholders.</span><br><span class="kw2">var</span> bound <span class="sy0">=</span> _.<span class="me1">bindKey</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="st0">'greet'</span><span class="sy0">,</span> _<span class="sy0">,</span> <span class="st0">'!'</span><span class="br0">&#41;</span><span class="sy0">;</span><br>bound<span class="br0">&#40;</span><span class="st0">'hi'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'hiya fred!'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="curry"></a><code>_.<span class="me1">curry</span><span class="br0">&#40;</span>func<span class="sy0">,</span> <span class="br0">&#91;</span>arity<span class="sy0">=</span>func.<span class="me1">length</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#curry">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L8566" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.curry" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that accepts arguments of <code>func</code> and either invokes
<code>func</code> returning its result, if at least <code>arity</code> number of arguments have
been provided, or returns a function that accepts the remaining <code>func</code>
arguments, and so on. The arity of <code>func</code> may be specified if <code>func.<span class="me1">length</span></code>
is not sufficient.
<br>
<br>
The <code>_.<span class="me1">curry</span>.<span class="me1">placeholder</span></code> value, which defaults to <code>_</code> in monolithic builds,
may be used as a placeholder for provided arguments.
<br>
<br>
<strong>Note:</strong> This method doesn’t set the "length" property of curried functions.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to curry.</li>
<li><code><span class="br0">&#91;</span>arity<span class="sy0">=</span>func.<span class="me1">length</span><span class="br0">&#93;</span></code> <em>(number)</em>: The arity of <code>func</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new curried function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> abc <span class="sy0">=</span> <span class="kw2">function</span><span class="br0">&#40;</span>a<span class="sy0">,</span> b<span class="sy0">,</span> c<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> <span class="br0">&#91;</span>a<span class="sy0">,</span> b<span class="sy0">,</span> c<span class="br0">&#93;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="sy0">;</span><br><br><span class="kw2">var</span> curried <span class="sy0">=</span> _.<span class="me1">curry</span><span class="br0">&#40;</span>abc<span class="br0">&#41;</span><span class="sy0">;</span><br><br>curried<span class="br0">&#40;</span><span class="nu0">1</span><span class="br0">&#41;</span><span class="br0">&#40;</span><span class="nu0">2</span><span class="br0">&#41;</span><span class="br0">&#40;</span><span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span><br><br>curried<span class="br0">&#40;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="br0">&#40;</span><span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span><br><br>curried<span class="br0">&#40;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span><br><br><span class="co1">// Curried with placeholders.</span><br>curried<span class="br0">&#40;</span><span class="nu0">1</span><span class="br0">&#41;</span><span class="br0">&#40;</span>_<span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#41;</span><span class="br0">&#40;</span><span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="curryRight"></a><code>_.<span class="me1">curryRight</span><span class="br0">&#40;</span>func<span class="sy0">,</span> <span class="br0">&#91;</span>arity<span class="sy0">=</span>func.<span class="me1">length</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#curryRight">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L8610" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.curryright" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#curry"><code>_.<span class="me1">curry</span></code></a> except that arguments are applied to <code>func</code>
in the manner of <a href="#partialRight"><code>_.<span class="me1">partialRight</span></code></a> instead of <a href="#partial"><code>_.<span class="me1">partial</span></code></a>.
<br>
<br>
The <code>_.<span class="me1">curryRight</span>.<span class="me1">placeholder</span></code> value, which defaults to <code>_</code> in monolithic
builds, may be used as a placeholder for provided arguments.
<br>
<br>
<strong>Note:</strong> This method doesn’t set the "length" property of curried functions.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to curry.</li>
<li><code><span class="br0">&#91;</span>arity<span class="sy0">=</span>func.<span class="me1">length</span><span class="br0">&#93;</span></code> <em>(number)</em>: The arity of <code>func</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new curried function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> abc <span class="sy0">=</span> <span class="kw2">function</span><span class="br0">&#40;</span>a<span class="sy0">,</span> b<span class="sy0">,</span> c<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> <span class="br0">&#91;</span>a<span class="sy0">,</span> b<span class="sy0">,</span> c<span class="br0">&#93;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="sy0">;</span><br><br><span class="kw2">var</span> curried <span class="sy0">=</span> _.<span class="me1">curryRight</span><span class="br0">&#40;</span>abc<span class="br0">&#41;</span><span class="sy0">;</span><br><br>curried<span class="br0">&#40;</span><span class="nu0">3</span><span class="br0">&#41;</span><span class="br0">&#40;</span><span class="nu0">2</span><span class="br0">&#41;</span><span class="br0">&#40;</span><span class="nu0">1</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span><br><br>curried<span class="br0">&#40;</span><span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#41;</span><span class="br0">&#40;</span><span class="nu0">1</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span><br><br>curried<span class="br0">&#40;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span><br><br><span class="co1">// Curried with placeholders.</span><br>curried<span class="br0">&#40;</span><span class="nu0">3</span><span class="br0">&#41;</span><span class="br0">&#40;</span><span class="nu0">1</span><span class="sy0">,</span> _<span class="br0">&#41;</span><span class="br0">&#40;</span><span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="debounce"></a><code>_.<span class="me1">debounce</span><span class="br0">&#40;</span>func<span class="sy0">,</span> <span class="br0">&#91;</span>wait<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>options<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#debounce">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L8666" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.debounce" title="See the npm package">&#x24C3;</a></p>
<p>Creates a debounced function that delays invoking <code>func</code> until after <code>wait</code>
milliseconds have elapsed since the last time the debounced function was
invoked. The debounced function comes with a <code>cancel</code> method to cancel
delayed <code>func</code> invocations and a <code>flush</code> method to immediately invoke them.
Provide an options object to indicate whether <code>func</code> should be invoked on
the leading and/or trailing edge of the <code>wait</code> timeout. The <code>func</code> is invoked
with the last arguments provided to the debounced function. Subsequent calls
to the debounced function return the result of the last <code>func</code> invocation.
<br>
<br>
<strong>Note:</strong> If <code>leading</code> and <code>trailing</code> options are <code><span class="kw2">true</span></code>, <code>func</code> is invoked
on the trailing edge of the timeout only if the debounced function is
invoked more than once during the <code>wait</code> timeout.
<br>
<br>
See <a href="http://drupalmotion.com/article/debounce-and-throttle-visual-explanation">David Corbacho’s article</a>
for details over the differences between <a href="#debounce"><code>_.<span class="me1">debounce</span></code></a> and <a href="#throttle"><code>_.<span class="me1">throttle</span></code></a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to debounce.</li>
<li><code><span class="br0">&#91;</span>wait<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span></code> <em>(number)</em>: The number of milliseconds to delay.</li>
<li><code><span class="br0">&#91;</span>options<span class="br0">&#93;</span></code> <em>(Object)</em>: The options object.</li>
<li><code><span class="br0">&#91;</span>options.<span class="me1">leading</span><span class="sy0">=</span><span class="kw2">false</span><span class="br0">&#93;</span></code> <em>(boolean)</em>: Specify invoking on the leading edge of the timeout.</li>
<li><code><span class="br0">&#91;</span>options.<span class="me1">maxWait</span><span class="br0">&#93;</span></code> <em>(number)</em>: The maximum time <code>func</code> is allowed to be delayed before it’s invoked.</li>
<li><code><span class="br0">&#91;</span>options.<span class="me1">trailing</span><span class="sy0">=</span><span class="kw2">true</span><span class="br0">&#93;</span></code> <em>(boolean)</em>: Specify invoking on the trailing edge of the timeout.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new debounced function.</p>
<h4>Example</h4>
<pre><code><span class="co1">// Avoid costly calculations while the window size is in flux.</span><br>jQuery<span class="br0">&#40;</span>window<span class="br0">&#41;</span>.<span class="me1">on</span><span class="br0">&#40;</span><span class="st0">'resize'</span><span class="sy0">,</span> _.<span class="me1">debounce</span><span class="br0">&#40;</span>calculateLayout<span class="sy0">,</span> <span class="nu0">150</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br><span class="co1">// Invoke `sendMail` when clicked, debouncing subsequent calls.</span><br>jQuery<span class="br0">&#40;</span>element<span class="br0">&#41;</span>.<span class="me1">on</span><span class="br0">&#40;</span><span class="st0">'click'</span><span class="sy0">,</span> _.<span class="me1">debounce</span><span class="br0">&#40;</span>sendMail<span class="sy0">,</span> <span class="nu0">300</span><span class="sy0">,</span> <span class="br0">&#123;</span><br>&nbsp; <span class="st0">'leading'</span><span class="sy0">:</span> <span class="kw2">true</span><span class="sy0">,</span><br>&nbsp; <span class="st0">'trailing'</span><span class="sy0">:</span> <span class="kw2">false</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br><span class="co1">// Ensure `batchLog` is invoked once after 1 second of debounced calls.</span><br><span class="kw2">var</span> debounced <span class="sy0">=</span> _.<span class="me1">debounce</span><span class="br0">&#40;</span>batchLog<span class="sy0">,</span> <span class="nu0">250</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'maxWait'</span><span class="sy0">:</span> <span class="nu0">1000</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="kw2">var</span> source <span class="sy0">=</span> <span class="kw2">new</span> EventSource<span class="br0">&#40;</span><span class="st0">'/stream'</span><span class="br0">&#41;</span><span class="sy0">;</span><br>jQuery<span class="br0">&#40;</span>source<span class="br0">&#41;</span>.<span class="me1">on</span><span class="br0">&#40;</span><span class="st0">'message'</span><span class="sy0">,</span> debounced<span class="br0">&#41;</span><span class="sy0">;</span><br><br><span class="co1">// Cancel the trailing debounced invocation.</span><br>jQuery<span class="br0">&#40;</span>window<span class="br0">&#41;</span>.<span class="me1">on</span><span class="br0">&#40;</span><span class="st0">'popstate'</span><span class="sy0">,</span> debounced.<span class="me1">cancel</span><span class="br0">&#41;</span><span class="sy0">;</span></code></pre>
<hr />
</div>
<div>
<h3><a id="defer"></a><code>_.<span class="me1">defer</span><span class="br0">&#40;</span>func<span class="sy0">,</span> <span class="br0">&#91;</span>args<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#defer">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L8800" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.defer" title="See the npm package">&#x24C3;</a></p>
<p>Defers invoking the <code>func</code> until the current call stack has cleared. Any
additional arguments are provided to <code>func</code> when it’s invoked.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to defer.</li>
<li><code><span class="br0">&#91;</span>args<span class="br0">&#93;</span></code> <em>(…&#42;)</em>: The arguments to invoke <code>func</code> with.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the timer id.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">defer</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span>text<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; console.<span class="me1">log</span><span class="br0">&#40;</span>text<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="sy0">,</span> <span class="st0">'deferred'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → logs 'deferred' after one or more milliseconds</span></code></pre>
<hr />
</div>
<div>
<h3><a id="delay"></a><code>_.<span class="me1">delay</span><span class="br0">&#40;</span>func<span class="sy0">,</span> wait<span class="sy0">,</span> <span class="br0">&#91;</span>args<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#delay">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L8822" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.delay" title="See the npm package">&#x24C3;</a></p>
<p>Invokes <code>func</code> after <code>wait</code> milliseconds. Any additional arguments are
provided to <code>func</code> when it’s invoked.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to delay.</li>
<li><code>wait</code> <em>(number)</em>: The number of milliseconds to delay invocation.</li>
<li><code><span class="br0">&#91;</span>args<span class="br0">&#93;</span></code> <em>(…&#42;)</em>: The arguments to invoke <code>func</code> with.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the timer id.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">delay</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span>text<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; console.<span class="me1">log</span><span class="br0">&#40;</span>text<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="sy0">,</span> <span class="nu0">1000</span><span class="sy0">,</span> <span class="st0">'later'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → logs 'later' after one second</span></code></pre>
<hr />
</div>
<div>
<h3><a id="flip"></a><code>_.<span class="me1">flip</span><span class="br0">&#40;</span>func<span class="br0">&#41;</span></code></h3>
<p><a href="#flip">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L8843" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.flip" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that invokes <code>func</code> with arguments reversed.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to flip arguments for.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> flipped <span class="sy0">=</span> _.<span class="me1">flip</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> _.<span class="me1">toArray</span><span class="br0">&#40;</span>arguments<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br>flipped<span class="br0">&#40;</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="sy0">,</span> <span class="st0">'d'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ['d', 'c', 'b', 'a']</span></code></pre>
<hr />
</div>
<div>
<h3><a id="memoize"></a><code>_.<span class="me1">memoize</span><span class="br0">&#40;</span>func<span class="sy0">,</span> <span class="br0">&#91;</span>resolver<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#memoize">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L8889" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.memoize" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that memoizes the result of <code>func</code>. If <code>resolver</code> is
provided it determines the cache key for storing the result based on the
arguments provided to the memoized function. By default, the first argument
provided to the memoized function is used as the map cache key. The <code>func</code>
is invoked with the <code><span class="kw1">this</span></code> binding of the memoized function.
<br>
<br>
<strong>Note:</strong> The cache is exposed as the <code>cache</code> property on the memoized
function. Its creation may be customized by replacing the <code>_.<span class="me1">memoize</span>.<span class="me1">Cache</span></code>
constructor with one whose instances implement the <a href="http://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-map-prototype-object"><code>Map</code></a>
method interface of <code><span class="kw1">delete</span></code>, <code>get</code>, <code>has</code>, and <code>set</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to have its output memoized.</li>
<li><code><span class="br0">&#91;</span>resolver<span class="br0">&#93;</span></code> <em>(Function)</em>: The function to resolve the cache key.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new memoizing function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><span class="kw2">var</span> other <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'c'</span><span class="sy0">:</span> <span class="nu0">3</span><span class="sy0">,</span> <span class="st0">'d'</span><span class="sy0">:</span> <span class="nu0">4</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><br><span class="kw2">var</span> values <span class="sy0">=</span> _.<span class="me1">memoize</span><span class="br0">&#40;</span>_.<span class="me1">values</span><span class="br0">&#41;</span><span class="sy0">;</span><br>values<span class="br0">&#40;</span>object<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2]</span><br><br>values<span class="br0">&#40;</span>other<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [3, 4]</span><br><br>object.<span class="me1">a</span> <span class="sy0">=</span> <span class="nu0">2</span><span class="sy0">;</span><br>values<span class="br0">&#40;</span>object<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2]</span><br><br><span class="co1">// Modify the result cache.</span><br>values.<span class="me1">cache</span>.<span class="me1">set</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br>values<span class="br0">&#40;</span>object<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ['a', 'b']</span><br><br><span class="co1">// Replace `_.memoize.Cache`.</span><br>_.<span class="me1">memoize</span>.<span class="me1">Cache</span> <span class="sy0">=</span> WeakMap<span class="sy0">;</span></code></pre>
<hr />
</div>
<div>
<h3><a id="negate"></a><code>_.<span class="me1">negate</span><span class="br0">&#40;</span>predicate<span class="br0">&#41;</span></code></h3>
<p><a href="#negate">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L8928" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.negate" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that negates the result of the predicate <code>func</code>. The
<code>func</code> predicate is invoked with the <code><span class="kw1">this</span></code> binding and arguments of the
created function.</p>
<h4>Arguments</h4>
<ol>
<li><code>predicate</code> <em>(Function)</em>: The predicate to negate.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> isEven<span class="br0">&#40;</span>n<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">%</span> <span class="nu0">2</span> <span class="sy0">==</span> <span class="nu0">0</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br>_.<span class="me1">filter</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">5</span><span class="sy0">,</span> <span class="nu0">6</span><span class="br0">&#93;</span><span class="sy0">,</span> _.<span class="me1">negate</span><span class="br0">&#40;</span>isEven<span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 3, 5]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="once"></a><code>_.<span class="me1">once</span><span class="br0">&#40;</span>func<span class="br0">&#41;</span></code></h3>
<p><a href="#once">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L8954" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.once" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that is restricted to invoking <code>func</code> once. Repeat calls
to the function return the value of the first invocation. The <code>func</code> is
invoked with the <code><span class="kw1">this</span></code> binding and arguments of the created function.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to restrict.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new restricted function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> initialize <span class="sy0">=</span> _.<span class="me1">once</span><span class="br0">&#40;</span>createApplication<span class="br0">&#41;</span><span class="sy0">;</span><br>initialize<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br>initialize<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// `initialize` invokes `createApplication` once</span></code></pre>
<hr />
</div>
<div>
<h3><a id="overArgs"></a><code>_.<span class="me1">overArgs</span><span class="br0">&#40;</span>func<span class="sy0">,</span> <span class="br0">&#91;</span>transforms<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#overArgs">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L8989" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.overargs" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that invokes <code>func</code> with arguments transformed by
corresponding <code>transforms</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to wrap.</li>
<li><code><span class="br0">&#91;</span>transforms<span class="br0">&#93;</span></code> <em>(…(Function|Function&#91;&#93;)</em>: The functions to transform arguments, specified individually or in arrays.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> doubled<span class="br0">&#40;</span>n<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">*</span> <span class="nu0">2</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br><span class="kw2">function</span> square<span class="br0">&#40;</span>n<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">*</span> n<span class="sy0">;</span><br><span class="br0">&#125;</span><br><br><span class="kw2">var</span> func <span class="sy0">=</span> _.<span class="me1">overArgs</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span>x<span class="sy0">,</span> y<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> <span class="br0">&#91;</span>x<span class="sy0">,</span> y<span class="br0">&#93;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="sy0">,</span> square<span class="sy0">,</span> doubled<span class="br0">&#41;</span><span class="sy0">;</span><br><br>func<span class="br0">&#40;</span><span class="nu0">9</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [81, 6]</span><br><br>func<span class="br0">&#40;</span><span class="nu0">10</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [100, 10]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="partial"></a><code>_.<span class="me1">partial</span><span class="br0">&#40;</span>func<span class="sy0">,</span> <span class="br0">&#91;</span>partials<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#partial">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9036" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.partial" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that invokes <code>func</code> with <code>partial</code> arguments prepended
to those provided to the new function. This method is like <a href="#bind"><code>_.<span class="me1">bind</span></code></a> except
it does <strong>not</strong> alter the <code><span class="kw1">this</span></code> binding.
<br>
<br>
The <code>_.<span class="me1">partial</span>.<span class="me1">placeholder</span></code> value, which defaults to <code>_</code> in monolithic
builds, may be used as a placeholder for partially applied arguments.
<br>
<br>
<strong>Note:</strong> This method doesn’t set the "length" property of partially
applied functions.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to partially apply arguments to.</li>
<li><code><span class="br0">&#91;</span>partials<span class="br0">&#93;</span></code> <em>(…&#42;)</em>: The arguments to be partially applied.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new partially applied function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> greet <span class="sy0">=</span> <span class="kw2">function</span><span class="br0">&#40;</span>greeting<span class="sy0">,</span> name<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> greeting <span class="sy0">+</span> <span class="st0">' '</span> <span class="sy0">+</span> name<span class="sy0">;</span><br><span class="br0">&#125;</span><span class="sy0">;</span><br><br><span class="kw2">var</span> sayHelloTo <span class="sy0">=</span> _.<span class="me1">partial</span><span class="br0">&#40;</span>greet<span class="sy0">,</span> <span class="st0">'hello'</span><span class="br0">&#41;</span><span class="sy0">;</span><br>sayHelloTo<span class="br0">&#40;</span><span class="st0">'fred'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'hello fred'</span><br><br><span class="co1">// Partially applied with placeholders.</span><br><span class="kw2">var</span> greetFred <span class="sy0">=</span> _.<span class="me1">partial</span><span class="br0">&#40;</span>greet<span class="sy0">,</span> _<span class="sy0">,</span> <span class="st0">'fred'</span><span class="br0">&#41;</span><span class="sy0">;</span><br>greetFred<span class="br0">&#40;</span><span class="st0">'hi'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'hi fred'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="partialRight"></a><code>_.<span class="me1">partialRight</span><span class="br0">&#40;</span>func<span class="sy0">,</span> <span class="br0">&#91;</span>partials<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#partialRight">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9074" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.partialright" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#partial"><code>_.<span class="me1">partial</span></code></a> except that partially applied arguments
are appended to those provided to the new function.
<br>
<br>
The <code>_.<span class="me1">partialRight</span>.<span class="me1">placeholder</span></code> value, which defaults to <code>_</code> in monolithic
builds, may be used as a placeholder for partially applied arguments.
<br>
<br>
<strong>Note:</strong> This method doesn’t set the "length" property of partially
applied functions.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to partially apply arguments to.</li>
<li><code><span class="br0">&#91;</span>partials<span class="br0">&#93;</span></code> <em>(…&#42;)</em>: The arguments to be partially applied.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new partially applied function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> greet <span class="sy0">=</span> <span class="kw2">function</span><span class="br0">&#40;</span>greeting<span class="sy0">,</span> name<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> greeting <span class="sy0">+</span> <span class="st0">' '</span> <span class="sy0">+</span> name<span class="sy0">;</span><br><span class="br0">&#125;</span><span class="sy0">;</span><br><br><span class="kw2">var</span> greetFred <span class="sy0">=</span> _.<span class="me1">partialRight</span><span class="br0">&#40;</span>greet<span class="sy0">,</span> <span class="st0">'fred'</span><span class="br0">&#41;</span><span class="sy0">;</span><br>greetFred<span class="br0">&#40;</span><span class="st0">'hi'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'hi fred'</span><br><br><span class="co1">// Partially applied with placeholders.</span><br><span class="kw2">var</span> sayHelloTo <span class="sy0">=</span> _.<span class="me1">partialRight</span><span class="br0">&#40;</span>greet<span class="sy0">,</span> <span class="st0">'hello'</span><span class="sy0">,</span> _<span class="br0">&#41;</span><span class="sy0">;</span><br>sayHelloTo<span class="br0">&#40;</span><span class="st0">'fred'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'hello fred'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="rearg"></a><code>_.<span class="me1">rearg</span><span class="br0">&#40;</span>func<span class="sy0">,</span> indexes<span class="br0">&#41;</span></code></h3>
<p><a href="#rearg">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9103" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.rearg" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that invokes <code>func</code> with arguments arranged according
to the specified indexes where the argument value at the first index is
provided as the first argument, the argument value at the second index is
provided as the second argument, and so on.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to rearrange arguments for.</li>
<li><code>indexes</code> <em>(…(number|number&#91;&#93;)</em>: The arranged argument indexes, specified individually or in arrays.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> rearged <span class="sy0">=</span> _.<span class="me1">rearg</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span>a<span class="sy0">,</span> b<span class="sy0">,</span> c<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> <span class="br0">&#91;</span>a<span class="sy0">,</span> b<span class="sy0">,</span> c<span class="br0">&#93;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">0</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br>rearged<span class="br0">&#40;</span><span class="st0">'b'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="sy0">,</span> <span class="st0">'a'</span><span class="br0">&#41;</span><br><span class="co1">// → ['a', 'b', 'c']</span></code></pre>
<hr />
</div>
<div>
<h3><a id="rest"></a><code>_.<span class="me1">rest</span><span class="br0">&#40;</span>func<span class="sy0">,</span> <span class="br0">&#91;</span>start<span class="sy0">=</span>func.<span class="me1">length</span><span class="sy0">-</span><span class="nu0">1</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#rest">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9129" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.rest" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that invokes <code>func</code> with the <code><span class="kw1">this</span></code> binding of the
created function and arguments from <code>start</code> and beyond provided as an array.
<br>
<br>
<strong>Note:</strong> This method is based on the <a href="https://mdn.io/rest_parameters">rest parameter</a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to apply a rest parameter to.</li>
<li><code><span class="br0">&#91;</span>start<span class="sy0">=</span>func.<span class="me1">length</span><span class="sy0">-</span><span class="nu0">1</span><span class="br0">&#93;</span></code> <em>(number)</em>: The start position of the rest parameter.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> say <span class="sy0">=</span> _.<span class="me1">rest</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span>what<span class="sy0">,</span> names<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> what <span class="sy0">+</span> <span class="st0">' '</span> <span class="sy0">+</span> _.<span class="me1">initial</span><span class="br0">&#40;</span>names<span class="br0">&#41;</span>.<span class="me1">join</span><span class="br0">&#40;</span><span class="st0">', '</span><span class="br0">&#41;</span> <span class="sy0">+</span><br>&nbsp; &nbsp; <span class="br0">&#40;</span>_.<span class="me1">size</span><span class="br0">&#40;</span>names<span class="br0">&#41;</span> <span class="sy0">&gt;</span> <span class="nu0">1</span> <span class="sy0">?</span> <span class="st0">', &amp; '</span> <span class="sy0">:</span> <span class="st0">''</span><span class="br0">&#41;</span> <span class="sy0">+</span> _.<span class="me1">last</span><span class="br0">&#40;</span>names<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br>say<span class="br0">&#40;</span><span class="st0">'hello'</span><span class="sy0">,</span> <span class="st0">'fred'</span><span class="sy0">,</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'pebbles'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'hello fred, barney, &amp; pebbles'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="spread"></a><code>_.<span class="me1">spread</span><span class="br0">&#40;</span>func<span class="sy0">,</span> <span class="br0">&#91;</span>start<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#spread">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9189" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.spread" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that invokes <code>func</code> with the <code><span class="kw1">this</span></code> binding of the created
function and an array of arguments much like <a href="https://es5.github.io/#x15.3.4.3"><code><span class="kw2">Function</span>#<span class=me1>apply</span></code></a>.
<br>
<br>
<strong>Note:</strong> This method is based on the <a href="https://mdn.io/spread_operator">spread operator</a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to spread arguments over.</li>
<li><code><span class="br0">&#91;</span>start<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span></code> <em>(number)</em>: The start position of the spread.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> say <span class="sy0">=</span> _.<span class="me1">spread</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span>who<span class="sy0">,</span> what<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> who <span class="sy0">+</span> <span class="st0">' says '</span> <span class="sy0">+</span> what<span class="sy0">;</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br>say<span class="br0">&#40;</span><span class="br0">&#91;</span><span class="st0">'fred'</span><span class="sy0">,</span> <span class="st0">'hello'</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'fred says hello'</span><br><br><span class="kw2">var</span> numbers <span class="sy0">=</span> Promise.<span class="me1">all</span><span class="br0">&#40;</span><span class="br0">&#91;</span><br>&nbsp; Promise.<span class="me1">resolve</span><span class="br0">&#40;</span><span class="nu0">40</span><span class="br0">&#41;</span><span class="sy0">,</span><br>&nbsp; Promise.<span class="me1">resolve</span><span class="br0">&#40;</span><span class="nu0">36</span><span class="br0">&#41;</span><br><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br>numbers.<span class="me1">then</span><span class="br0">&#40;</span>_.<span class="me1">spread</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span>x<span class="sy0">,</span> y<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> x <span class="sy0">+</span> y<span class="sy0">;</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → a Promise of 76</span></code></pre>
<hr />
</div>
<div>
<h3><a id="throttle"></a><code>_.<span class="me1">throttle</span><span class="br0">&#40;</span>func<span class="sy0">,</span> <span class="br0">&#91;</span>wait<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>options<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#throttle">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9245" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.throttle" title="See the npm package">&#x24C3;</a></p>
<p>Creates a throttled function that only invokes <code>func</code> at most once per
every <code>wait</code> milliseconds. The throttled function comes with a <code>cancel</code>
method to cancel delayed <code>func</code> invocations and a <code>flush</code> method to
immediately invoke them. Provide an options object to indicate whether
<code>func</code> should be invoked on the leading and/or trailing edge of the <code>wait</code>
timeout. The <code>func</code> is invoked with the last arguments provided to the
throttled function. Subsequent calls to the throttled function return the
result of the last <code>func</code> invocation.
<br>
<br>
<strong>Note:</strong> If <code>leading</code> and <code>trailing</code> options are <code><span class="kw2">true</span></code>, <code>func</code> is invoked
on the trailing edge of the timeout only if the throttled function is
invoked more than once during the <code>wait</code> timeout.
<br>
<br>
See <a href="http://drupalmotion.com/article/debounce-and-throttle-visual-explanation">David Corbacho’s article</a>
for details over the differences between <a href="#throttle"><code>_.<span class="me1">throttle</span></code></a> and <a href="#debounce"><code>_.<span class="me1">debounce</span></code></a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to throttle.</li>
<li><code><span class="br0">&#91;</span>wait<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span></code> <em>(number)</em>: The number of milliseconds to throttle invocations to.</li>
<li><code><span class="br0">&#91;</span>options<span class="br0">&#93;</span></code> <em>(Object)</em>: The options object.</li>
<li><code><span class="br0">&#91;</span>options.<span class="me1">leading</span><span class="sy0">=</span><span class="kw2">true</span><span class="br0">&#93;</span></code> <em>(boolean)</em>: Specify invoking on the leading edge of the timeout.</li>
<li><code><span class="br0">&#91;</span>options.<span class="me1">trailing</span><span class="sy0">=</span><span class="kw2">true</span><span class="br0">&#93;</span></code> <em>(boolean)</em>: Specify invoking on the trailing edge of the timeout.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new throttled function.</p>
<h4>Example</h4>
<pre><code><span class="co1">// Avoid excessively updating the position while scrolling.</span><br>jQuery<span class="br0">&#40;</span>window<span class="br0">&#41;</span>.<span class="me1">on</span><span class="br0">&#40;</span><span class="st0">'scroll'</span><span class="sy0">,</span> _.<span class="me1">throttle</span><span class="br0">&#40;</span>updatePosition<span class="sy0">,</span> <span class="nu0">100</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br><span class="co1">// Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.</span><br><span class="kw2">var</span> throttled <span class="sy0">=</span> _.<span class="me1">throttle</span><span class="br0">&#40;</span>renewToken<span class="sy0">,</span> <span class="nu0">300000</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'trailing'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br>jQuery<span class="br0">&#40;</span>element<span class="br0">&#41;</span>.<span class="me1">on</span><span class="br0">&#40;</span><span class="st0">'click'</span><span class="sy0">,</span> throttled<span class="br0">&#41;</span><span class="sy0">;</span><br><br><span class="co1">// Cancel the trailing throttled invocation.</span><br>jQuery<span class="br0">&#40;</span>window<span class="br0">&#41;</span>.<span class="me1">on</span><span class="br0">&#40;</span><span class="st0">'popstate'</span><span class="sy0">,</span> throttled.<span class="me1">cancel</span><span class="br0">&#41;</span><span class="sy0">;</span></code></pre>
<hr />
</div>
<div>
<h3><a id="unary"></a><code>_.<span class="me1">unary</span><span class="br0">&#40;</span>func<span class="br0">&#41;</span></code></h3>
<p><a href="#unary">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9277" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.unary" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that accepts up to one argument, ignoring any
additional arguments.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to cap arguments for.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">map</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="st0">'6'</span><span class="sy0">,</span> <span class="st0">'8'</span><span class="sy0">,</span> <span class="st0">'10'</span><span class="br0">&#93;</span><span class="sy0">,</span> _.<span class="me1">unary</span><span class="br0">&#40;</span>parseInt<span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [6, 8, 10]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="wrap"></a><code>_.<span class="me1">wrap</span><span class="br0">&#40;</span>value<span class="sy0">,</span> <span class="br0">&#91;</span>wrapper<span class="sy0">=</span>identity<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#wrap">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9302" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.wrap" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that provides <code>value</code> to the wrapper function as its
first argument. Any additional arguments provided to the function are
appended to those provided to the wrapper function. The wrapper is invoked
with the <code><span class="kw1">this</span></code> binding of the created function.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to wrap.</li>
<li><code><span class="br0">&#91;</span>wrapper<span class="sy0">=</span>identity<span class="br0">&#93;</span></code> <em>(Function)</em>: The wrapper function.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> p <span class="sy0">=</span> _.<span class="me1">wrap</span><span class="br0">&#40;</span>_.<span class="me1">escape</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>func<span class="sy0">,</span> text<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> <span class="st0">'&lt;p&gt;'</span> + func(text) + <span class="st0">'&lt;p&gt;'</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br>p<span class="br0">&#40;</span><span class="st0">'fred, barney, &amp; pebbles'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → '&lt;p&gt;fred, barney, &amp;amp; pebbles&lt;p&gt;'<br></span></code></pre>
<hr />
</div>
</div>
<div>
<h2><code>“Lang” Methods</code></h2>
<div>
<h3><a id="castArray"></a><code>_.<span class="me1">castArray</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#castArray">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9341" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.castarray" title="See the npm package">&#x24C3;</a></p>
<p>Casts <code>value</code> as an array if it’s not one.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to inspect.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the cast array.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">castArray</span><span class="br0">&#40;</span><span class="nu0">1</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1]</span><br><br>_.<span class="me1">castArray</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [{ 'a': 1 }]</span><br><br>_.<span class="me1">castArray</span><span class="br0">&#40;</span><span class="st0">'abc'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ['abc']</span><br><br>_.<span class="me1">castArray</span><span class="br0">&#40;</span><span class="kw2">null</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [null]</span><br><br>_.<span class="me1">castArray</span><span class="br0">&#40;</span>undefined<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [undefined]</span><br><br>_.<span class="me1">castArray</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → []</span><br><br><span class="kw2">var</span> array <span class="sy0">=</span> <span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="sy0">;</span><br>console.<span class="me1">log</span><span class="br0">&#40;</span>_.<span class="me1">castArray</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span> <span class="sy0">===</span> array<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr />
</div>
<div>
<h3><a id="clone"></a><code>_.<span class="me1">clone</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#clone">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9373" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.clone" title="See the npm package">&#x24C3;</a></p>
<p>Creates a shallow clone of <code>value</code>.
<br>
<br>
<strong>Note:</strong> This method is loosely based on the
<a href="https://mdn.io/Structured_clone_algorithm">structured clone algorithm</a>
and supports cloning arrays, array buffers, booleans, date objects, maps,
numbers, <code>Object</code> objects, regexes, sets, strings, symbols, and typed
arrays. The own enumerable properties of <code>arguments</code> objects are cloned
as plain objects. An empty object is returned for uncloneable values such
as error objects, functions, DOM nodes, and WeakMaps.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to clone.</li>
</ol>
<h4>Returns</h4>
<p><em>(&#42;)</em>:  Returns the cloned value.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> objects <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">;</span><br><br><span class="kw2">var</span> shallow <span class="sy0">=</span> _.<span class="me1">clone</span><span class="br0">&#40;</span>objects<span class="br0">&#41;</span><span class="sy0">;</span><br>console.<span class="me1">log</span><span class="br0">&#40;</span>shallow<span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span> <span class="sy0">===</span> objects<span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr />
</div>
<div>
<h3><a id="cloneDeep"></a><code>_.<span class="me1">cloneDeep</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#cloneDeep">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9426" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.clonedeep" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#clone"><code>_.<span class="me1">clone</span></code></a> except that it recursively clones <code>value</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to recursively clone.</li>
</ol>
<h4>Returns</h4>
<p><em>(&#42;)</em>:  Returns the deep cloned value.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> objects <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">;</span><br><br><span class="kw2">var</span> deep <span class="sy0">=</span> _.<span class="me1">cloneDeep</span><span class="br0">&#40;</span>objects<span class="br0">&#41;</span><span class="sy0">;</span><br>console.<span class="me1">log</span><span class="br0">&#40;</span>deep<span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span> <span class="sy0">===</span> objects<span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="cloneDeepWith"></a><code>_.<span class="me1">cloneDeepWith</span><span class="br0">&#40;</span>value<span class="sy0">,</span> <span class="br0">&#91;</span>customizer<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#cloneDeepWith">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9456" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.clonedeepwith" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#cloneWith"><code>_.<span class="me1">cloneWith</span></code></a> except that it recursively clones <code>value</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to recursively clone.</li>
<li><code><span class="br0">&#91;</span>customizer<span class="br0">&#93;</span></code> <em>(Function)</em>: The function to customize cloning.</li>
</ol>
<h4>Returns</h4>
<p><em>(&#42;)</em>:  Returns the deep cloned value.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> customizer<span class="br0">&#40;</span>value<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>_.<span class="me1">isElement</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; &nbsp; <span class="kw1">return</span> value.<span class="me1">cloneNode</span><span class="br0">&#40;</span><span class="kw2">true</span><span class="br0">&#41;</span><span class="sy0">;</span><br>&nbsp; <span class="br0">&#125;</span><br><span class="br0">&#125;</span><br><br><span class="kw2">var</span> el <span class="sy0">=</span> _.<span class="me1">cloneDeepWith</span><span class="br0">&#40;</span>document.<span class="me1">body</span><span class="sy0">,</span> customizer<span class="br0">&#41;</span><span class="sy0">;</span><br><br>console.<span class="me1">log</span><span class="br0">&#40;</span>el <span class="sy0">===</span> document.<span class="me1">body</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br>console.<span class="me1">log</span><span class="br0">&#40;</span>el.<span class="me1">nodeName</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'BODY'</span><br>console.<span class="me1">log</span><span class="br0">&#40;</span>el.<span class="me1">childNodes</span>.<span class="me1">length</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 20</span></code></pre>
<hr />
</div>
<div>
<h3><a id="cloneWith"></a><code>_.<span class="me1">cloneWith</span><span class="br0">&#40;</span>value<span class="sy0">,</span> <span class="br0">&#91;</span>customizer<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#cloneWith">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9406" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.clonewith" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#clone"><code>_.<span class="me1">clone</span></code></a> except that it accepts <code>customizer</code> which
is invoked to produce the cloned value. If <code>customizer</code> returns <code>undefined</code>
cloning is handled by the method instead. The <code>customizer</code> is invoked with
up to four arguments; (value [, index|key, object, stack]).</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to clone.</li>
<li><code><span class="br0">&#91;</span>customizer<span class="br0">&#93;</span></code> <em>(Function)</em>: The function to customize cloning.</li>
</ol>
<h4>Returns</h4>
<p><em>(&#42;)</em>:  Returns the cloned value.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> customizer<span class="br0">&#40;</span>value<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>_.<span class="me1">isElement</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; &nbsp; <span class="kw1">return</span> value.<span class="me1">cloneNode</span><span class="br0">&#40;</span><span class="kw2">false</span><span class="br0">&#41;</span><span class="sy0">;</span><br>&nbsp; <span class="br0">&#125;</span><br><span class="br0">&#125;</span><br><br><span class="kw2">var</span> el <span class="sy0">=</span> _.<span class="me1">cloneWith</span><span class="br0">&#40;</span>document.<span class="me1">body</span><span class="sy0">,</span> customizer<span class="br0">&#41;</span><span class="sy0">;</span><br><br>console.<span class="me1">log</span><span class="br0">&#40;</span>el <span class="sy0">===</span> document.<span class="me1">body</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br>console.<span class="me1">log</span><span class="br0">&#40;</span>el.<span class="me1">nodeName</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'BODY'</span><br>console.<span class="me1">log</span><span class="br0">&#40;</span>el.<span class="me1">childNodes</span>.<span class="me1">length</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 0</span></code></pre>
<hr />
</div>
<div>
<h3><a id="eq"></a><code>_.<span class="me1">eq</span><span class="br0">&#40;</span>value<span class="sy0">,</span> other<span class="br0">&#41;</span></code></h3>
<p><a href="#eq">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9490" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.eq" title="See the npm package">&#x24C3;</a></p>
<p>Performs a <a href="http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero"><code>SameValueZero</code></a>
comparison between two values to determine if they are equivalent.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to compare.</li>
<li><code>other</code> <em>(&#42;)</em>: The other value to compare.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if the values are equivalent, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><span class="kw2">var</span> other <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><br>_.<span class="me1">eq</span><span class="br0">&#40;</span>object<span class="sy0">,</span> object<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">eq</span><span class="br0">&#40;</span>object<span class="sy0">,</span> other<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">eq</span><span class="br0">&#40;</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'a'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">eq</span><span class="br0">&#40;</span><span class="st0">'a'</span><span class="sy0">,</span> Object<span class="br0">&#40;</span><span class="st0">'a'</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">eq</span><span class="br0">&#40;</span>NaN<span class="sy0">,</span> NaN<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr />
</div>
<div>
<h3><a id="gt"></a><code>_.<span class="me1">gt</span><span class="br0">&#40;</span>value<span class="sy0">,</span> other<span class="br0">&#41;</span></code></h3>
<p><a href="#gt">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9514" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.gt" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is greater than <code>other</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to compare.</li>
<li><code>other</code> <em>(&#42;)</em>: The other value to compare.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is greater than <code>other</code>, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">gt</span><span class="br0">&#40;</span><span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">gt</span><span class="br0">&#40;</span><span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">gt</span><span class="br0">&#40;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="gte"></a><code>_.<span class="me1">gte</span><span class="br0">&#40;</span>value<span class="sy0">,</span> other<span class="br0">&#41;</span></code></h3>
<p><a href="#gte">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9538" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.gte" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is greater than or equal to <code>other</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to compare.</li>
<li><code>other</code> <em>(&#42;)</em>: The other value to compare.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is greater than or equal to <code>other</code>, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">gte</span><span class="br0">&#40;</span><span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">gte</span><span class="br0">&#40;</span><span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">gte</span><span class="br0">&#40;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isArguments"></a><code>_.<span class="me1">isArguments</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isArguments">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9558" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isarguments" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is likely an <code>arguments</code> object.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is correctly classified, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isArguments</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw1">return</span> arguments<span class="sy0">;</span> <span class="br0">&#125;</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isArguments</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isArray"></a><code>_.<span class="me1">isArray</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isArray">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9587" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isarray" title="See the npm package">&#x24C3;</a></p>
<p>({Function}): Checks if <code>value</code> is classified as an <code>Array</code> object.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is correctly classified, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isArray</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isArray</span><span class="br0">&#40;</span>document.<span class="me1">body</span>.<span class="me1">children</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">isArray</span><span class="br0">&#40;</span><span class="st0">'abc'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">isArray</span><span class="br0">&#40;</span>_.<span class="me1">noop</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isArrayBuffer"></a><code>_.<span class="me1">isArrayBuffer</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isArrayBuffer">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9605" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isarraybuffer" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is classified as an <code>ArrayBuffer</code> object.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is correctly classified, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isArrayBuffer</span><span class="br0">&#40;</span><span class="kw2">new</span> ArrayBuffer<span class="br0">&#40;</span><span class="nu0">2</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isArrayBuffer</span><span class="br0">&#40;</span><span class="kw2">new</span> Array<span class="br0">&#40;</span><span class="nu0">2</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isArrayLike"></a><code>_.<span class="me1">isArrayLike</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isArrayLike">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9633" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isarraylike" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is array-like. A value is considered array-like if it’s
not a function and has a <code>value.<span class="me1">length</span></code> that’s an integer greater than or
equal to <code>0</code> and less than or equal to <code>Number.<span class="me1">MAX_SAFE_INTEGER</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is array-like, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isArrayLike</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isArrayLike</span><span class="br0">&#40;</span>document.<span class="me1">body</span>.<span class="me1">children</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isArrayLike</span><span class="br0">&#40;</span><span class="st0">'abc'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isArrayLike</span><span class="br0">&#40;</span>_.<span class="me1">noop</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isArrayLikeObject"></a><code>_.<span class="me1">isArrayLikeObject</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isArrayLikeObject">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9661" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isarraylikeobject" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#isArrayLike"><code>_.<span class="me1">isArrayLike</span></code></a> except that it also checks if <code>value</code>
is an object.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is an array-like object, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isArrayLikeObject</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isArrayLikeObject</span><span class="br0">&#40;</span>document.<span class="me1">body</span>.<span class="me1">children</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isArrayLikeObject</span><span class="br0">&#40;</span><span class="st0">'abc'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">isArrayLikeObject</span><span class="br0">&#40;</span>_.<span class="me1">noop</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isBoolean"></a><code>_.<span class="me1">isBoolean</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isBoolean">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9681" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isboolean" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is classified as a boolean primitive or object.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is correctly classified, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isBoolean</span><span class="br0">&#40;</span><span class="kw2">false</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isBoolean</span><span class="br0">&#40;</span><span class="kw2">null</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isBuffer"></a><code>_.<span class="me1">isBuffer</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isBuffer">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9702" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isbuffer" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is a buffer.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is a buffer, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isBuffer</span><span class="br0">&#40;</span><span class="kw2">new</span> Buffer<span class="br0">&#40;</span><span class="nu0">2</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isBuffer</span><span class="br0">&#40;</span><span class="kw2">new</span> Uint8Array<span class="br0">&#40;</span><span class="nu0">2</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isDate"></a><code>_.<span class="me1">isDate</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isDate">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9722" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isdate" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is classified as a <code>Date</code> object.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is correctly classified, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isDate</span><span class="br0">&#40;</span><span class="kw2">new</span> Date<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isDate</span><span class="br0">&#40;</span><span class="st0">'Mon April 23 2012'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isElement"></a><code>_.<span class="me1">isElement</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isElement">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9742" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.iselement" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is likely a DOM element.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is a DOM element, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isElement</span><span class="br0">&#40;</span>document.<span class="me1">body</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isElement</span><span class="br0">&#40;</span><span class="st0">'&lt;body&gt;'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isEmpty"></a><code>_.<span class="me1">isEmpty</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isEmpty">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9773" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isempty" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is empty. A value is considered empty unless it’s an
<code>arguments</code> object, array, string, or jQuery-like collection with a length
greater than <code>0</code> or an object with own enumerable properties.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(Array|Object|string)</em>: The value to inspect.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is empty, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isEmpty</span><span class="br0">&#40;</span><span class="kw2">null</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isEmpty</span><span class="br0">&#40;</span><span class="kw2">true</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isEmpty</span><span class="br0">&#40;</span><span class="nu0">1</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isEmpty</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">isEmpty</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isEqual"></a><code>_.<span class="me1">isEqual</span><span class="br0">&#40;</span>value<span class="sy0">,</span> other<span class="br0">&#41;</span></code></h3>
<p><a href="#isEqual">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9814" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isequal" title="See the npm package">&#x24C3;</a></p>
<p>Performs a deep comparison between two values to determine if they are
equivalent.
<br>
<br>
<strong>Note:</strong> This method supports comparing arrays, array buffers, booleans,
date objects, error objects, maps, numbers, <code>Object</code> objects, regexes,
sets, strings, symbols, and typed arrays. <code>Object</code> objects are compared
by their own, not inherited, enumerable properties. Functions and DOM
nodes are <strong>not</strong> supported.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to compare.</li>
<li><code>other</code> <em>(&#42;)</em>: The other value to compare.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if the values are equivalent, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><span class="kw2">var</span> other <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><br>_.<span class="me1">isEqual</span><span class="br0">&#40;</span>object<span class="sy0">,</span> other<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>object <span class="sy0">===</span> other<span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isEqualWith"></a><code>_.<span class="me1">isEqualWith</span><span class="br0">&#40;</span>value<span class="sy0">,</span> other<span class="sy0">,</span> <span class="br0">&#91;</span>customizer<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#isEqualWith">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9849" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isequalwith" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#isEqual"><code>_.<span class="me1">isEqual</span></code></a> except that it accepts <code>customizer</code> which
is invoked to compare values. If <code>customizer</code> returns <code>undefined</code> comparisons
are handled by the method instead. The <code>customizer</code> is invoked with up to
six arguments: (objValue, othValue [, index|key, object, other, stack]).</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to compare.</li>
<li><code>other</code> <em>(&#42;)</em>: The other value to compare.</li>
<li><code><span class="br0">&#91;</span>customizer<span class="br0">&#93;</span></code> <em>(Function)</em>: The function to customize comparisons.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if the values are equivalent, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> isGreeting<span class="br0">&#40;</span>value<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> <span class="co2">/^h(?:i|ello)$/</span>.<span class="me1">test</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br><span class="kw2">function</span> customizer<span class="br0">&#40;</span>objValue<span class="sy0">,</span> othValue<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>isGreeting<span class="br0">&#40;</span>objValue<span class="br0">&#41;</span> <span class="sy0">&amp;</span>amp<span class="sy0">;&amp;</span>amp<span class="sy0">;</span> isGreeting<span class="br0">&#40;</span>othValue<span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; &nbsp; <span class="kw1">return</span> <span class="kw2">true</span><span class="sy0">;</span><br>&nbsp; <span class="br0">&#125;</span><br><span class="br0">&#125;</span><br><br><span class="kw2">var</span> array <span class="sy0">=</span> <span class="br0">&#91;</span><span class="st0">'hello'</span><span class="sy0">,</span> <span class="st0">'goodbye'</span><span class="br0">&#93;</span><span class="sy0">;</span><br><span class="kw2">var</span> other <span class="sy0">=</span> <span class="br0">&#91;</span><span class="st0">'hi'</span><span class="sy0">,</span> <span class="st0">'goodbye'</span><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">isEqualWith</span><span class="br0">&#40;</span>array<span class="sy0">,</span> other<span class="sy0">,</span> customizer<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isError"></a><code>_.<span class="me1">isError</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isError">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9872" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.iserror" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is an <code>Error</code>, <code>EvalError</code>, <code>RangeError</code>, <code>ReferenceError</code>,
<code>SyntaxError</code>, <code>TypeError</code>, or <code>URIError</code> object.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is an error object, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isError</span><span class="br0">&#40;</span><span class="kw2">new</span> Error<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isError</span><span class="br0">&#40;</span>Error<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isFinite"></a><code>_.<span class="me1">isFinite</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isFinite">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9905" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isfinite" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is a finite primitive number.
<br>
<br>
<strong>Note:</strong> This method is based on <a href="https://mdn.io/Number/isFinite"><code>Number.<span class="me1">isFinite</span></code></a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is a finite number, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isFinite</span><span class="br0">&#40;</span><span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isFinite</span><span class="br0">&#40;</span>Number.<span class="me1">MAX_VALUE</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isFinite</span><span class="br0">&#40;</span><span class="nu0">3.14</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isFinite</span><span class="br0">&#40;</span>Infinity<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isFunction"></a><code>_.<span class="me1">isFunction</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isFunction">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9925" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isfunction" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is classified as a <code><span class="kw2">Function</span></code> object.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is correctly classified, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isFunction</span><span class="br0">&#40;</span>_<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isFunction</span><span class="br0">&#40;</span><span class="co2">/abc/</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isInteger"></a><code>_.<span class="me1">isInteger</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isInteger">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9957" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isinteger" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is an integer.
<br>
<br>
<strong>Note:</strong> This method is based on <a href="https://mdn.io/Number/isInteger"><code>Number.<span class="me1">isInteger</span></code></a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is an integer, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isInteger</span><span class="br0">&#40;</span><span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isInteger</span><span class="br0">&#40;</span>Number.<span class="me1">MIN_VALUE</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">isInteger</span><span class="br0">&#40;</span>Infinity<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">isInteger</span><span class="br0">&#40;</span><span class="st0">'3'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isLength"></a><code>_.<span class="me1">isLength</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isLength">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L9985" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.islength" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is a valid array-like length.
<br>
<br>
<strong>Note:</strong> This function is loosely based on <a href="http://ecma-international.org/ecma-262/6.0/#sec-tolength"><code>ToLength</code></a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is a valid length, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isLength</span><span class="br0">&#40;</span><span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isLength</span><span class="br0">&#40;</span>Number.<span class="me1">MIN_VALUE</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">isLength</span><span class="br0">&#40;</span>Infinity<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">isLength</span><span class="br0">&#40;</span><span class="st0">'3'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isMap"></a><code>_.<span class="me1">isMap</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isMap">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10061" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.ismap" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is classified as a <code>Map</code> object.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is correctly classified, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isMap</span><span class="br0">&#40;</span><span class="kw2">new</span> Map<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isMap</span><span class="br0">&#40;</span><span class="kw2">new</span> WeakMap<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isMatch"></a><code>_.<span class="me1">isMatch</span><span class="br0">&#40;</span>object<span class="sy0">,</span> source<span class="br0">&#41;</span></code></h3>
<p><a href="#isMatch">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10088" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.ismatch" title="See the npm package">&#x24C3;</a></p>
<p>Performs a partial deep comparison between <code>object</code> and <code>source</code> to
determine if <code>object</code> contains equivalent property values. This method is
equivalent to a <a href="#matches"><code>_.<span class="me1">matches</span></code></a> function when <code>source</code> is partially applied.
<br>
<br>
<strong>Note:</strong> This method supports comparing the same values as <a href="#isEqual"><code>_.<span class="me1">isEqual</span></code></a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to inspect.</li>
<li><code>source</code> <em>(Object)</em>: The object of property values to match.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>object</code> is a match, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><br>_.<span class="me1">isMatch</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isMatch</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isMatchWith"></a><code>_.<span class="me1">isMatchWith</span><span class="br0">&#40;</span>object<span class="sy0">,</span> source<span class="sy0">,</span> <span class="br0">&#91;</span>customizer<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#isMatchWith">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10123" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.ismatchwith" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#isMatch"><code>_.<span class="me1">isMatch</span></code></a> except that it accepts <code>customizer</code> which
is invoked to compare values. If <code>customizer</code> returns <code>undefined</code> comparisons
are handled by the method instead. The <code>customizer</code> is invoked with five
arguments: (objValue, srcValue, index|key, object, source).</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to inspect.</li>
<li><code>source</code> <em>(Object)</em>: The object of property values to match.</li>
<li><code><span class="br0">&#91;</span>customizer<span class="br0">&#93;</span></code> <em>(Function)</em>: The function to customize comparisons.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>object</code> is a match, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> isGreeting<span class="br0">&#40;</span>value<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> <span class="co2">/^h(?:i|ello)$/</span>.<span class="me1">test</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br><span class="kw2">function</span> customizer<span class="br0">&#40;</span>objValue<span class="sy0">,</span> srcValue<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>isGreeting<span class="br0">&#40;</span>objValue<span class="br0">&#41;</span> <span class="sy0">&amp;</span>amp<span class="sy0">;&amp;</span>amp<span class="sy0">;</span> isGreeting<span class="br0">&#40;</span>srcValue<span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; &nbsp; <span class="kw1">return</span> <span class="kw2">true</span><span class="sy0">;</span><br>&nbsp; <span class="br0">&#125;</span><br><span class="br0">&#125;</span><br><br><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'greeting'</span><span class="sy0">:</span> <span class="st0">'hello'</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><span class="kw2">var</span> source <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'greeting'</span><span class="sy0">:</span> <span class="st0">'hi'</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><br>_.<span class="me1">isMatchWith</span><span class="br0">&#40;</span>object<span class="sy0">,</span> source<span class="sy0">,</span> customizer<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isNaN"></a><code>_.<span class="me1">isNaN</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isNaN">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10153" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isnan" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is <code>NaN</code>.
<br>
<br>
<strong>Note:</strong> This method is not the same as <a href="https://es5.github.io/#x15.1.2.4"><code>isNaN</code></a>
which returns <code><span class="kw2">true</span></code> for <code>undefined</code> and other non-numeric values.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is <code>NaN</code>, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isNaN</span><span class="br0">&#40;</span>NaN<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isNaN</span><span class="br0">&#40;</span><span class="kw2">new</span> Number<span class="br0">&#40;</span>NaN<span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>isNaN<span class="br0">&#40;</span>undefined<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isNaN</span><span class="br0">&#40;</span>undefined<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isNative"></a><code>_.<span class="me1">isNative</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isNative">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10175" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isnative" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is a native function.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is a native function, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isNative</span><span class="br0">&#40;</span>Array.<span class="me1">prototype</span>.<span class="me1">push</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isNative</span><span class="br0">&#40;</span>_<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isNil"></a><code>_.<span class="me1">isNil</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isNil">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10225" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isnil" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is <code><span class="kw2">null</span></code> or <code>undefined</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is nullish, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isNil</span><span class="br0">&#40;</span><span class="kw2">null</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isNil</span><span class="br0">&#40;</span><span class="kw1">void</span> <span class="nu0">0</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isNil</span><span class="br0">&#40;</span>NaN<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isNull"></a><code>_.<span class="me1">isNull</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isNull">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10202" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isnull" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is <code><span class="kw2">null</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is <code><span class="kw2">null</span></code>, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isNull</span><span class="br0">&#40;</span><span class="kw2">null</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isNull</span><span class="br0">&#40;</span><span class="kw1">void</span> <span class="nu0">0</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isNumber"></a><code>_.<span class="me1">isNumber</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isNumber">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10254" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isnumber" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is classified as a <code>Number</code> primitive or object.
<br>
<br>
<strong>Note:</strong> To exclude <code>Infinity</code>, <code><span class="sy0">-</span>Infinity</code>, and <code>NaN</code>, which are classified
as numbers, use the <a href="#isFinite"><code>_.<span class="me1">isFinite</span></code></a> method.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is correctly classified, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isNumber</span><span class="br0">&#40;</span><span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isNumber</span><span class="br0">&#40;</span>Number.<span class="me1">MIN_VALUE</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isNumber</span><span class="br0">&#40;</span>Infinity<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isNumber</span><span class="br0">&#40;</span><span class="st0">'3'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isObject"></a><code>_.<span class="me1">isObject</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isObject">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10013" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isobject" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is the <a href="https://es5.github.io/#x8">language type</a> of <code>Object</code>.
(e.g. arrays, functions, objects, regexes, <code><span class="kw2">new</span> Number<span class="br0">&#40;</span><span class="nu0">0</span><span class="br0">&#41;</span></code>, and <code><span class="kw2">new</span> String<span class="br0">&#40;</span><span class="st0">''</span><span class="br0">&#41;</span></code>)</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is an object, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isObject</span><span class="br0">&#40;</span><span class="br0">&#123;</span><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isObject</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isObject</span><span class="br0">&#40;</span>_.<span class="me1">noop</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isObject</span><span class="br0">&#40;</span><span class="kw2">null</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isObjectLike"></a><code>_.<span class="me1">isObjectLike</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isObjectLike">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10041" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isobjectlike" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is object-like. A value is object-like if it’s not <code><span class="kw2">null</span></code>
and has a <code><span class="kw1">typeof</span></code> result of "object".</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is object-like, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isObjectLike</span><span class="br0">&#40;</span><span class="br0">&#123;</span><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isObjectLike</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isObjectLike</span><span class="br0">&#40;</span>_.<span class="me1">noop</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">isObjectLike</span><span class="br0">&#40;</span><span class="kw2">null</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isPlainObject"></a><code>_.<span class="me1">isPlainObject</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isPlainObject">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10286" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isplainobject" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is a plain object, that is, an object created by the
<code>Object</code> constructor or one with a <code><span class="br0">&#91;</span><span class="br0">&#91;</span>Prototype<span class="br0">&#93;</span><span class="br0">&#93;</span></code> of <code><span class="kw2">null</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is a plain object, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Foo<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">a</span> <span class="sy0">=</span> <span class="nu0">1</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br>_.<span class="me1">isPlainObject</span><span class="br0">&#40;</span><span class="kw2">new</span> Foo<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">isPlainObject</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">isPlainObject</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">0</span><span class="sy0">,</span> <span class="st0">'y'</span><span class="sy0">:</span> <span class="nu0">0</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isPlainObject</span><span class="br0">&#40;</span>Object.<span class="me1">create</span><span class="br0">&#40;</span><span class="kw2">null</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isRegExp"></a><code>_.<span class="me1">isRegExp</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isRegExp">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10319" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isregexp" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is classified as a <code>RegExp</code> object.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is correctly classified, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isRegExp</span><span class="br0">&#40;</span><span class="co2">/abc/</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isRegExp</span><span class="br0">&#40;</span><span class="st0">'/abc/'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isSafeInteger"></a><code>_.<span class="me1">isSafeInteger</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isSafeInteger">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10348" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.issafeinteger" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is a safe integer. An integer is safe if it’s an IEEE-754
double precision number which isn’t the result of a rounded unsafe integer.
<br>
<br>
<strong>Note:</strong> This method is based on <a href="https://mdn.io/Number/isSafeInteger"><code>Number.<span class="me1">isSafeInteger</span></code></a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is a safe integer, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isSafeInteger</span><span class="br0">&#40;</span><span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isSafeInteger</span><span class="br0">&#40;</span>Number.<span class="me1">MIN_VALUE</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">isSafeInteger</span><span class="br0">&#40;</span>Infinity<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">isSafeInteger</span><span class="br0">&#40;</span><span class="st0">'3'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isSet"></a><code>_.<span class="me1">isSet</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isSet">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10368" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isset" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is classified as a <code>Set</code> object.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is correctly classified, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isSet</span><span class="br0">&#40;</span><span class="kw2">new</span> Set<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isSet</span><span class="br0">&#40;</span><span class="kw2">new</span> WeakSet<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isString"></a><code>_.<span class="me1">isString</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isString">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10388" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isstring" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is classified as a <code>String</code> primitive or object.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is correctly classified, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isString</span><span class="br0">&#40;</span><span class="st0">'abc'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isString</span><span class="br0">&#40;</span><span class="nu0">1</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isSymbol"></a><code>_.<span class="me1">isSymbol</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isSymbol">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10409" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.issymbol" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is classified as a <code>Symbol</code> primitive or object.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is correctly classified, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isSymbol</span><span class="br0">&#40;</span>Symbol.<span class="me1">iterator</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isSymbol</span><span class="br0">&#40;</span><span class="st0">'abc'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isTypedArray"></a><code>_.<span class="me1">isTypedArray</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isTypedArray">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10430" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.istypedarray" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is classified as a typed array.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is correctly classified, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isTypedArray</span><span class="br0">&#40;</span><span class="kw2">new</span> Uint8Array<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isTypedArray</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isUndefined"></a><code>_.<span class="me1">isUndefined</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isUndefined">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10451" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isundefined" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is <code>undefined</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is <code>undefined</code>, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isUndefined</span><span class="br0">&#40;</span><span class="kw1">void</span> <span class="nu0">0</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isUndefined</span><span class="br0">&#40;</span><span class="kw2">null</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isWeakMap"></a><code>_.<span class="me1">isWeakMap</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isWeakMap">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10471" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isweakmap" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is classified as a <code>WeakMap</code> object.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is correctly classified, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isWeakMap</span><span class="br0">&#40;</span><span class="kw2">new</span> WeakMap<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isWeakMap</span><span class="br0">&#40;</span><span class="kw2">new</span> Map<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="isWeakSet"></a><code>_.<span class="me1">isWeakSet</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#isWeakSet">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10491" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.isweakset" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is classified as a <code>WeakSet</code> object.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is correctly classified, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isWeakSet</span><span class="br0">&#40;</span><span class="kw2">new</span> WeakSet<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isWeakSet</span><span class="br0">&#40;</span><span class="kw2">new</span> Set<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="lt"></a><code>_.<span class="me1">lt</span><span class="br0">&#40;</span>value<span class="sy0">,</span> other<span class="br0">&#41;</span></code></h3>
<p><a href="#lt">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10515" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.lt" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is less than <code>other</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to compare.</li>
<li><code>other</code> <em>(&#42;)</em>: The other value to compare.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is less than <code>other</code>, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">lt</span><span class="br0">&#40;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">lt</span><span class="br0">&#40;</span><span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">lt</span><span class="br0">&#40;</span><span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="lte"></a><code>_.<span class="me1">lte</span><span class="br0">&#40;</span>value<span class="sy0">,</span> other<span class="br0">&#41;</span></code></h3>
<p><a href="#lte">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10539" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.lte" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>value</code> is less than or equal to <code>other</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to compare.</li>
<li><code>other</code> <em>(&#42;)</em>: The other value to compare.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is less than or equal to <code>other</code>, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">lte</span><span class="br0">&#40;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">lte</span><span class="br0">&#40;</span><span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">lte</span><span class="br0">&#40;</span><span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="toArray"></a><code>_.<span class="me1">toArray</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#toArray">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10565" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.toarray" title="See the npm package">&#x24C3;</a></p>
<p>Converts <code>value</code> to an array.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to convert.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the converted array.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">toArray</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2]</span><br><br>_.<span class="me1">toArray</span><span class="br0">&#40;</span><span class="st0">'abc'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ['a', 'b', 'c']</span><br><br>_.<span class="me1">toArray</span><span class="br0">&#40;</span><span class="nu0">1</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → []</span><br><br>_.<span class="me1">toArray</span><span class="br0">&#40;</span><span class="kw2">null</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → []</span></code></pre>
<hr />
</div>
<div>
<h3><a id="toInteger"></a><code>_.<span class="me1">toInteger</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#toInteger">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10605" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.tointeger" title="See the npm package">&#x24C3;</a></p>
<p>Converts <code>value</code> to an integer.
<br>
<br>
<strong>Note:</strong> This function is loosely based on <a href="http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger"><code>ToInteger</code></a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to convert.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the converted integer.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">toInteger</span><span class="br0">&#40;</span><span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 3</span><br><br>_.<span class="me1">toInteger</span><span class="br0">&#40;</span>Number.<span class="me1">MIN_VALUE</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 0</span><br><br>_.<span class="me1">toInteger</span><span class="br0">&#40;</span>Infinity<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 1.7976931348623157e+308</span><br><br>_.<span class="me1">toInteger</span><span class="br0">&#40;</span><span class="st0">'3'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 3</span></code></pre>
<hr />
</div>
<div>
<h3><a id="toLength"></a><code>_.<span class="me1">toLength</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#toLength">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10643" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.tolength" title="See the npm package">&#x24C3;</a></p>
<p>Converts <code>value</code> to an integer suitable for use as the length of an
array-like object.
<br>
<br>
<strong>Note:</strong> This method is based on <a href="http://ecma-international.org/ecma-262/6.0/#sec-tolength"><code>ToLength</code></a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to convert.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the converted integer.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">toLength</span><span class="br0">&#40;</span><span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 3</span><br><br>_.<span class="me1">toLength</span><span class="br0">&#40;</span>Number.<span class="me1">MIN_VALUE</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 0</span><br><br>_.<span class="me1">toLength</span><span class="br0">&#40;</span>Infinity<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 4294967295</span><br><br>_.<span class="me1">toLength</span><span class="br0">&#40;</span><span class="st0">'3'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 3</span></code></pre>
<hr />
</div>
<div>
<h3><a id="toNumber"></a><code>_.<span class="me1">toNumber</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#toNumber">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10669" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.tonumber" title="See the npm package">&#x24C3;</a></p>
<p>Converts <code>value</code> to a number.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to process.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the number.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">toNumber</span><span class="br0">&#40;</span><span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 3</span><br><br>_.<span class="me1">toNumber</span><span class="br0">&#40;</span>Number.<span class="me1">MIN_VALUE</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 5e-324</span><br><br>_.<span class="me1">toNumber</span><span class="br0">&#40;</span>Infinity<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → Infinity</span><br><br>_.<span class="me1">toNumber</span><span class="br0">&#40;</span><span class="st0">'3'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 3</span></code></pre>
<hr />
</div>
<div>
<h3><a id="toPlainObject"></a><code>_.<span class="me1">toPlainObject</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#toPlainObject">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10707" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.toplainobject" title="See the npm package">&#x24C3;</a></p>
<p>Converts <code>value</code> to a plain object flattening inherited enumerable
properties of <code>value</code> to own properties of the plain object.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to convert.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the converted plain object.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Foo<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">b</span> <span class="sy0">=</span> <span class="nu0">2</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br>Foo.<span class="me1">prototype</span>.<span class="me1">c</span> <span class="sy0">=</span> <span class="nu0">3</span><span class="sy0">;</span><br><br>_.<span class="me1">assign</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="kw2">new</span> Foo<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'a': 1, 'b': 2 }</span><br><br>_.<span class="me1">assign</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="sy0">,</span> _.<span class="me1">toPlainObject</span><span class="br0">&#40;</span><span class="kw2">new</span> Foo<span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'a': 1, 'b': 2, 'c': 3 }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="toSafeInteger"></a><code>_.<span class="me1">toSafeInteger</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#toSafeInteger">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10734" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.tosafeinteger" title="See the npm package">&#x24C3;</a></p>
<p>Converts <code>value</code> to a safe integer. A safe integer can be compared and
represented correctly.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to convert.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the converted integer.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">toSafeInteger</span><span class="br0">&#40;</span><span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 3</span><br><br>_.<span class="me1">toSafeInteger</span><span class="br0">&#40;</span>Number.<span class="me1">MIN_VALUE</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 0</span><br><br>_.<span class="me1">toSafeInteger</span><span class="br0">&#40;</span>Infinity<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 9007199254740991</span><br><br>_.<span class="me1">toSafeInteger</span><span class="br0">&#40;</span><span class="st0">'3'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 3</span></code></pre>
<hr />
</div>
<div>
<h3><a id="toString"></a><code>_.<span class="me1">toString</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#toString">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10758" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.tostring" title="See the npm package">&#x24C3;</a></p>
<p>Converts <code>value</code> to a string if it’s not one. An empty string is returned
for <code><span class="kw2">null</span></code> and <code>undefined</code> values. The sign of <code><span class="sy0">-</span><span class="nu0">0</span></code> is preserved.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to process.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">toString</span><span class="br0">&#40;</span><span class="kw2">null</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ''</span><br><br>_.<span class="me1">toString</span><span class="br0">&#40;</span><span class="sy0">-</span><span class="nu0">0</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → '-0'</span><br><br>_.<span class="me1">toString</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → '1,2,3'</span></code></pre>
<hr />
</div>
</div>
<div>
<h2><code>“Math” Methods</code></h2>
<div>
<h3><a id="add"></a><code>_.<span class="me1">add</span><span class="br0">&#40;</span>augend<span class="sy0">,</span> addend<span class="br0">&#41;</span></code></h3>
<p><a href="#add">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L14019" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.add" title="See the npm package">&#x24C3;</a></p>
<p>Adds two numbers.</p>
<h4>Arguments</h4>
<ol>
<li><code>augend</code> <em>(number)</em>: The first number in an addition.</li>
<li><code>addend</code> <em>(number)</em>: The second number in an addition.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the total.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">add</span><span class="br0">&#40;</span><span class="nu0">6</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 10</span></code></pre>
<hr />
</div>
<div>
<h3><a id="ceil"></a><code>_.<span class="me1">ceil</span><span class="br0">&#40;</span>number<span class="sy0">,</span> <span class="br0">&#91;</span>precision<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#ceil">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L14053" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.ceil" title="See the npm package">&#x24C3;</a></p>
<p>Computes <code>number</code> rounded up to <code>precision</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>number</code> <em>(number)</em>: The number to round up.</li>
<li><code><span class="br0">&#91;</span>precision<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span></code> <em>(number)</em>: The precision to round up to.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the rounded up number.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">ceil</span><span class="br0">&#40;</span><span class="nu0">4.006</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 5</span><br><br>_.<span class="me1">ceil</span><span class="br0">&#40;</span><span class="nu0">6.004</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 6.01</span><br><br>_.<span class="me1">ceil</span><span class="br0">&#40;</span><span class="nu0">6040</span><span class="sy0">,</span> <span class="sy0">-</span><span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 6100</span></code></pre>
<hr />
</div>
<div>
<h3><a id="floor"></a><code>_.<span class="me1">floor</span><span class="br0">&#40;</span>number<span class="sy0">,</span> <span class="br0">&#91;</span>precision<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#floor">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L14075" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.floor" title="See the npm package">&#x24C3;</a></p>
<p>Computes <code>number</code> rounded down to <code>precision</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>number</code> <em>(number)</em>: The number to round down.</li>
<li><code><span class="br0">&#91;</span>precision<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span></code> <em>(number)</em>: The precision to round down to.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the rounded down number.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">floor</span><span class="br0">&#40;</span><span class="nu0">4.006</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 4</span><br><br>_.<span class="me1">floor</span><span class="br0">&#40;</span><span class="nu0">0.046</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 0.04</span><br><br>_.<span class="me1">floor</span><span class="br0">&#40;</span><span class="nu0">4060</span><span class="sy0">,</span> <span class="sy0">-</span><span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 4000</span></code></pre>
<hr />
</div>
<div>
<h3><a id="max"></a><code>_.<span class="me1">max</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span></code></h3>
<p><a href="#max">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L14094" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.max" title="See the npm package">&#x24C3;</a></p>
<p>Computes the maximum value of <code>array</code>. If <code>array</code> is empty or falsey
<code>undefined</code> is returned.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to iterate over.</li>
</ol>
<h4>Returns</h4>
<p><em>(&#42;)</em>:  Returns the maximum value.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">max</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">8</span><span class="sy0">,</span> <span class="nu0">6</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 8</span><br><br>_.<span class="me1">max</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → undefined</span></code></pre>
<hr />
</div>
<div>
<h3><a id="maxBy"></a><code>_.<span class="me1">maxBy</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#maxBy">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L14122" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.maxby" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#max"><code>_.<span class="me1">max</span></code></a> except that it accepts <code>iteratee</code> which is
invoked for each element in <code>array</code> to generate the criterion by which
the value is ranked. The iteratee is invoked with one argument: (value).</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to iterate over.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The iteratee invoked per element.</li>
</ol>
<h4>Returns</h4>
<p><em>(&#42;)</em>:  Returns the maximum value.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> objects <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'n'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'n'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">maxBy</span><span class="br0">&#40;</span>objects<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>o<span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw1">return</span> o.<span class="me1">n</span><span class="sy0">;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'n': 2 }</span><br><br><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">maxBy</span><span class="br0">&#40;</span>objects<span class="sy0">,</span> <span class="st0">'n'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'n': 2 }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="mean"></a><code>_.<span class="me1">mean</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span></code></h3>
<p><a href="#mean">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L14141" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.mean" title="See the npm package">&#x24C3;</a></p>
<p>Computes the mean of the values in <code>array</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to iterate over.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the mean.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">mean</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">8</span><span class="sy0">,</span> <span class="nu0">6</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 5</span></code></pre>
<hr />
</div>
<div>
<h3><a id="min"></a><code>_.<span class="me1">min</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span></code></h3>
<p><a href="#min">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L14162" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.min" title="See the npm package">&#x24C3;</a></p>
<p>Computes the minimum value of <code>array</code>. If <code>array</code> is empty or falsey
<code>undefined</code> is returned.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to iterate over.</li>
</ol>
<h4>Returns</h4>
<p><em>(&#42;)</em>:  Returns the minimum value.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">min</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">8</span><span class="sy0">,</span> <span class="nu0">6</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 2</span><br><br>_.<span class="me1">min</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → undefined</span></code></pre>
<hr />
</div>
<div>
<h3><a id="minBy"></a><code>_.<span class="me1">minBy</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#minBy">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L14190" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.minby" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#min"><code>_.<span class="me1">min</span></code></a> except that it accepts <code>iteratee</code> which is
invoked for each element in <code>array</code> to generate the criterion by which
the value is ranked. The iteratee is invoked with one argument: (value).</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to iterate over.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The iteratee invoked per element.</li>
</ol>
<h4>Returns</h4>
<p><em>(&#42;)</em>:  Returns the minimum value.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> objects <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'n'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'n'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">minBy</span><span class="br0">&#40;</span>objects<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>o<span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw1">return</span> o.<span class="me1">n</span><span class="sy0">;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'n': 1 }</span><br><br><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">minBy</span><span class="br0">&#40;</span>objects<span class="sy0">,</span> <span class="st0">'n'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'n': 1 }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="round"></a><code>_.<span class="me1">round</span><span class="br0">&#40;</span>number<span class="sy0">,</span> <span class="br0">&#91;</span>precision<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#round">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L14216" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.round" title="See the npm package">&#x24C3;</a></p>
<p>Computes <code>number</code> rounded to <code>precision</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>number</code> <em>(number)</em>: The number to round.</li>
<li><code><span class="br0">&#91;</span>precision<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span></code> <em>(number)</em>: The precision to round to.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the rounded number.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">round</span><span class="br0">&#40;</span><span class="nu0">4.006</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 4</span><br><br>_.<span class="me1">round</span><span class="br0">&#40;</span><span class="nu0">4.006</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 4.01</span><br><br>_.<span class="me1">round</span><span class="br0">&#40;</span><span class="nu0">4060</span><span class="sy0">,</span> <span class="sy0">-</span><span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 4100</span></code></pre>
<hr />
</div>
<div>
<h3><a id="subtract"></a><code>_.<span class="me1">subtract</span><span class="br0">&#40;</span>minuend<span class="sy0">,</span> subtrahend<span class="br0">&#41;</span></code></h3>
<p><a href="#subtract">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L14232" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.subtract" title="See the npm package">&#x24C3;</a></p>
<p>Subtract two numbers.</p>
<h4>Arguments</h4>
<ol>
<li><code>minuend</code> <em>(number)</em>: The first number in a subtraction.</li>
<li><code>subtrahend</code> <em>(number)</em>: The second number in a subtraction.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the difference.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">subtract</span><span class="br0">&#40;</span><span class="nu0">6</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 2</span></code></pre>
<hr />
</div>
<div>
<h3><a id="sum"></a><code>_.<span class="me1">sum</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span></code></h3>
<p><a href="#sum">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L14259" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.sum" title="See the npm package">&#x24C3;</a></p>
<p>Computes the sum of the values in <code>array</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to iterate over.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the sum.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">sum</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">8</span><span class="sy0">,</span> <span class="nu0">6</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 20</span></code></pre>
<hr />
</div>
<div>
<h3><a id="sumBy"></a><code>_.<span class="me1">sumBy</span><span class="br0">&#40;</span>array<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#sumBy">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L14287" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.sumby" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#sum"><code>_.<span class="me1">sum</span></code></a> except that it accepts <code>iteratee</code> which is
invoked for each element in <code>array</code> to generate the value to be summed.
The iteratee is invoked with one argument: (value).</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to iterate over.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The iteratee invoked per element.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the sum.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> objects <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'n'</span><span class="sy0">:</span> <span class="nu0">4</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'n'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'n'</span><span class="sy0">:</span> <span class="nu0">8</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'n'</span><span class="sy0">:</span> <span class="nu0">6</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">sumBy</span><span class="br0">&#40;</span>objects<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>o<span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw1">return</span> o.<span class="me1">n</span><span class="sy0">;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 20</span><br><br><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">sumBy</span><span class="br0">&#40;</span>objects<span class="sy0">,</span> <span class="st0">'n'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 20</span></code></pre>
<hr />
</div>
</div>
<div>
<h2><code>“Number” Methods</code></h2>
<div>
<h3><a id="clamp"></a><code>_.<span class="me1">clamp</span><span class="br0">&#40;</span>number<span class="sy0">,</span> <span class="br0">&#91;</span>lower<span class="br0">&#93;</span><span class="sy0">,</span> upper<span class="br0">&#41;</span></code></h3>
<p><a href="#clamp">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12039" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.clamp" title="See the npm package">&#x24C3;</a></p>
<p>Clamps <code>number</code> within the inclusive <code>lower</code> and <code>upper</code> bounds.</p>
<h4>Arguments</h4>
<ol>
<li><code>number</code> <em>(number)</em>: The number to clamp.</li>
<li><code><span class="br0">&#91;</span>lower<span class="br0">&#93;</span></code> <em>(number)</em>: The lower bound.</li>
<li><code>upper</code> <em>(number)</em>: The upper bound.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the clamped number.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">clamp</span><span class="br0">&#40;</span><span class="sy0">-</span><span class="nu0">10</span><span class="sy0">,</span> <span class="sy0">-</span><span class="nu0">5</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → -5</span><br><br>_.<span class="me1">clamp</span><span class="br0">&#40;</span><span class="nu0">10</span><span class="sy0">,</span> <span class="sy0">-</span><span class="nu0">5</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 5</span></code></pre>
<hr />
</div>
<div>
<h3><a id="inRange"></a><code>_.<span class="me1">inRange</span><span class="br0">&#40;</span>number<span class="sy0">,</span> <span class="br0">&#91;</span>start<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="sy0">,</span> end<span class="br0">&#41;</span></code></h3>
<p><a href="#inRange">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12091" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.inrange" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>n</code> is between <code>start</code> and up to but not including, <code>end</code>. If
<code>end</code> is not specified it’s set to <code>start</code> with <code>start</code> then set to <code>0</code>.
If <code>start</code> is greater than <code>end</code> the params are swapped to support
negative ranges.</p>
<h4>Arguments</h4>
<ol>
<li><code>number</code> <em>(number)</em>: The number to check.</li>
<li><code><span class="br0">&#91;</span>start<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span></code> <em>(number)</em>: The start of the range.</li>
<li><code>end</code> <em>(number)</em>: The end of the range.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>number</code> is in the range, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">inRange</span><span class="br0">&#40;</span><span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">inRange</span><span class="br0">&#40;</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">8</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">inRange</span><span class="br0">&#40;</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">inRange</span><span class="br0">&#40;</span><span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">inRange</span><span class="br0">&#40;</span><span class="nu0">1.2</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">inRange</span><span class="br0">&#40;</span><span class="nu0">5.2</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">inRange</span><span class="br0">&#40;</span><span class="sy0">-</span><span class="nu0">3</span><span class="sy0">,</span> <span class="sy0">-</span><span class="nu0">2</span><span class="sy0">,</span> <span class="sy0">-</span><span class="nu0">6</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr />
</div>
<div>
<h3><a id="random"></a><code>_.<span class="me1">random</span><span class="br0">&#40;</span><span class="br0">&#91;</span>lower<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>upper<span class="sy0">=</span><span class="nu0">1</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>floating<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#random">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12133" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.random" title="See the npm package">&#x24C3;</a></p>
<p>Produces a random number between the inclusive <code>lower</code> and <code>upper</code> bounds.
If only one argument is provided a number between <code>0</code> and the given number
is returned. If <code>floating</code> is <code><span class="kw2">true</span></code>, or either <code>lower</code> or <code>upper</code> are floats,
a floating-point number is returned instead of an integer.
<br>
<br>
<strong>Note:</strong> JavaScript follows the IEEE-754 standard for resolving
floating-point values which can produce unexpected results.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>lower<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span></code> <em>(number)</em>: The lower bound.</li>
<li><code><span class="br0">&#91;</span>upper<span class="sy0">=</span><span class="nu0">1</span><span class="br0">&#93;</span></code> <em>(number)</em>: The upper bound.</li>
<li><code><span class="br0">&#91;</span>floating<span class="br0">&#93;</span></code> <em>(boolean)</em>: Specify returning a floating-point number.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the random number.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">random</span><span class="br0">&#40;</span><span class="nu0">0</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → an integer between 0 and 5</span><br><br>_.<span class="me1">random</span><span class="br0">&#40;</span><span class="nu0">5</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → also an integer between 0 and 5</span><br><br>_.<span class="me1">random</span><span class="br0">&#40;</span><span class="nu0">5</span><span class="sy0">,</span> <span class="kw2">true</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → a floating-point number between 0 and 5</span><br><br>_.<span class="me1">random</span><span class="br0">&#40;</span><span class="nu0">1.2</span><span class="sy0">,</span> <span class="nu0">5.2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → a floating-point number between 1.2 and 5.2</span></code></pre>
<hr />
</div>
</div>
<div>
<h2><code>“Object” Methods</code></h2>
<div>
<h3><a id="assign"></a><code>_.<span class="me1">assign</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span>sources<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#assign">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10805" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.assign" title="See the npm package">&#x24C3;</a></p>
<p>Assigns own enumerable properties of source objects to the destination
object. Source objects are applied from left to right. Subsequent sources
overwrite property assignments of previous sources.
<br>
<br>
<strong>Note:</strong> This method mutates <code>object</code> and is loosely based on
<a href="https://mdn.io/Object/assign"><code>Object.<span class="me1">assign</span></code></a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The destination object.</li>
<li><code><span class="br0">&#91;</span>sources<span class="br0">&#93;</span></code> <em>(…Object)</em>: The source objects.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns <code>object</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Foo<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">c</span> <span class="sy0">=</span> <span class="nu0">3</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br><span class="kw2">function</span> Bar<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">e</span> <span class="sy0">=</span> <span class="nu0">5</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br>Foo.<span class="me1">prototype</span>.<span class="me1">d</span> <span class="sy0">=</span> <span class="nu0">4</span><span class="sy0">;</span><br>Bar.<span class="me1">prototype</span>.<span class="me1">f</span> <span class="sy0">=</span> <span class="nu0">6</span><span class="sy0">;</span><br><br>_.<span class="me1">assign</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="kw2">new</span> Foo<span class="sy0">,</span> <span class="kw2">new</span> Bar<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'a': 1, 'c': 3, 'e': 5 }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="assignIn"></a><code>_.<span class="me1">assignIn</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span>sources<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#assignIn">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10838" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.assignin" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#assign"><code>_.<span class="me1">assign</span></code></a> except that it iterates over own and
inherited source properties.
<br>
<br>
<strong>Note:</strong> This method mutates <code>object</code>.</p>
<h4>Aliases</h4>
<p><em>_.extend</em></p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The destination object.</li>
<li><code><span class="br0">&#91;</span>sources<span class="br0">&#93;</span></code> <em>(…Object)</em>: The source objects.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns <code>object</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Foo<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">b</span> <span class="sy0">=</span> <span class="nu0">2</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br><span class="kw2">function</span> Bar<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">d</span> <span class="sy0">=</span> <span class="nu0">4</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br>Foo.<span class="me1">prototype</span>.<span class="me1">c</span> <span class="sy0">=</span> <span class="nu0">3</span><span class="sy0">;</span><br>Bar.<span class="me1">prototype</span>.<span class="me1">e</span> <span class="sy0">=</span> <span class="nu0">5</span><span class="sy0">;</span><br><br>_.<span class="me1">assignIn</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="kw2">new</span> Foo<span class="sy0">,</span> <span class="kw2">new</span> Bar<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5 }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="assignInWith"></a><code>_.<span class="me1">assignInWith</span><span class="br0">&#40;</span>object<span class="sy0">,</span> sources<span class="sy0">,</span> <span class="br0">&#91;</span>customizer<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#assignInWith">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10869" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.assigninwith" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#assignIn"><code>_.<span class="me1">assignIn</span></code></a> except that it accepts <code>customizer</code> which
is invoked to produce the assigned values. If <code>customizer</code> returns <code>undefined</code>
assignment is handled by the method instead. The <code>customizer</code> is invoked
with five arguments: (objValue, srcValue, key, object, source).
<br>
<br>
<strong>Note:</strong> This method mutates <code>object</code>.</p>
<h4>Aliases</h4>
<p><em>_.extendWith</em></p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The destination object.</li>
<li><code>sources</code> <em>(…Object)</em>: The source objects.</li>
<li><code><span class="br0">&#91;</span>customizer<span class="br0">&#93;</span></code> <em>(Function)</em>: The function to customize assigned values.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns <code>object</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> customizer<span class="br0">&#40;</span>objValue<span class="sy0">,</span> srcValue<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> _.<span class="me1">isUndefined</span><span class="br0">&#40;</span>objValue<span class="br0">&#41;</span> <span class="sy0">?</span> srcValue <span class="sy0">:</span> objValue<span class="sy0">;</span><br><span class="br0">&#125;</span><br><br><span class="kw2">var</span> defaults <span class="sy0">=</span> _.<span class="me1">partialRight</span><span class="br0">&#40;</span>_.<span class="me1">assignInWith</span><span class="sy0">,</span> customizer<span class="br0">&#41;</span><span class="sy0">;</span><br><br>defaults<span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">3</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'a': 1, 'b': 2 }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="assignWith"></a><code>_.<span class="me1">assignWith</span><span class="br0">&#40;</span>object<span class="sy0">,</span> sources<span class="sy0">,</span> <span class="br0">&#91;</span>customizer<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#assignWith">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10899" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.assignwith" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#assign"><code>_.<span class="me1">assign</span></code></a> except that it accepts <code>customizer</code> which
is invoked to produce the assigned values. If <code>customizer</code> returns <code>undefined</code>
assignment is handled by the method instead. The <code>customizer</code> is invoked
with five arguments: (objValue, srcValue, key, object, source).
<br>
<br>
<strong>Note:</strong> This method mutates <code>object</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The destination object.</li>
<li><code>sources</code> <em>(…Object)</em>: The source objects.</li>
<li><code><span class="br0">&#91;</span>customizer<span class="br0">&#93;</span></code> <em>(Function)</em>: The function to customize assigned values.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns <code>object</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> customizer<span class="br0">&#40;</span>objValue<span class="sy0">,</span> srcValue<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> _.<span class="me1">isUndefined</span><span class="br0">&#40;</span>objValue<span class="br0">&#41;</span> <span class="sy0">?</span> srcValue <span class="sy0">:</span> objValue<span class="sy0">;</span><br><span class="br0">&#125;</span><br><br><span class="kw2">var</span> defaults <span class="sy0">=</span> _.<span class="me1">partialRight</span><span class="br0">&#40;</span>_.<span class="me1">assignWith</span><span class="sy0">,</span> customizer<span class="br0">&#41;</span><span class="sy0">;</span><br><br>defaults<span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">3</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'a': 1, 'b': 2 }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="at"></a><code>_.<span class="me1">at</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span>paths<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#at">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10923" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.at" title="See the npm package">&#x24C3;</a></p>
<p>Creates an array of values corresponding to <code>paths</code> of <code>object</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to iterate over.</li>
<li><code><span class="br0">&#91;</span>paths<span class="br0">&#93;</span></code> <em>(…(string|string&#91;&#93;)</em>: The property paths of elements to pick, specified individually or in arrays.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of picked elements.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="br0">&#123;</span> <span class="st0">'c'</span><span class="sy0">:</span> <span class="nu0">3</span> <span class="br0">&#125;</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">&#93;</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><br>_.<span class="me1">at</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'a[0].b.c'</span><span class="sy0">,</span> <span class="st0">'a[1]'</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [3, 4]</span><br><br>_.<span class="me1">at</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="nu0">0</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ['a', 'c']</span></code></pre>
<hr />
</div>
<div>
<h3><a id="create"></a><code>_.<span class="me1">create</span><span class="br0">&#40;</span>prototype<span class="sy0">,</span> <span class="br0">&#91;</span>properties<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#create">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10959" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.create" title="See the npm package">&#x24C3;</a></p>
<p>Creates an object that inherits from the <code>prototype</code> object. If a <code>properties</code>
object is given its own enumerable properties are assigned to the created object.</p>
<h4>Arguments</h4>
<ol>
<li><code>prototype</code> <em>(Object)</em>: The object to inherit from.</li>
<li><code><span class="br0">&#91;</span>properties<span class="br0">&#93;</span></code> <em>(Object)</em>: The properties to assign to the object.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new object.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Shape<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">x</span> <span class="sy0">=</span> <span class="nu0">0</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">y</span> <span class="sy0">=</span> <span class="nu0">0</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br><span class="kw2">function</span> Circle<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; Shape.<span class="me1">call</span><span class="br0">&#40;</span><span class="kw1">this</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br>Circle.<span class="me1">prototype</span> <span class="sy0">=</span> _.<span class="me1">create</span><span class="br0">&#40;</span>Shape.<span class="me1">prototype</span><span class="sy0">,</span> <span class="br0">&#123;</span><br>&nbsp; <span class="st0">'constructor'</span><span class="sy0">:</span> Circle<br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br><span class="kw2">var</span> circle <span class="sy0">=</span> <span class="kw2">new</span> Circle<span class="sy0">;</span><br>circle <span class="kw1">instanceof</span> Circle<span class="sy0">;</span><br><span class="co1">// → true</span><br><br>circle <span class="kw1">instanceof</span> Shape<span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr />
</div>
<div>
<h3><a id="defaults"></a><code>_.<span class="me1">defaults</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span>sources<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#defaults">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L10983" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.defaults" title="See the npm package">&#x24C3;</a></p>
<p>Assigns own and inherited enumerable properties of source objects to the
destination object for all destination properties that resolve to <code>undefined</code>.
Source objects are applied from left to right. Once a property is set,
additional values of the same property are ignored.
<br>
<br>
<strong>Note:</strong> This method mutates <code>object</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The destination object.</li>
<li><code><span class="br0">&#91;</span>sources<span class="br0">&#93;</span></code> <em>(…Object)</em>: The source objects.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns <code>object</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">defaults</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'user': 'barney', 'age': 36 }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="defaultsDeep"></a><code>_.<span class="me1">defaultsDeep</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span>sources<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#defaultsDeep">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11006" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.defaultsdeep" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#defaults"><code>_.<span class="me1">defaults</span></code></a> except that it recursively assigns
default properties.
<br>
<br>
<strong>Note:</strong> This method mutates <code>object</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The destination object.</li>
<li><code><span class="br0">&#91;</span>sources<span class="br0">&#93;</span></code> <em>(…Object)</em>: The source objects.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns <code>object</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">defaultsDeep</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="br0">&#123;</span> <span class="st0">'name'</span><span class="sy0">:</span> <span class="st0">'barney'</span> <span class="br0">&#125;</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="br0">&#123;</span> <span class="st0">'name'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span> <span class="br0">&#125;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'user': { 'name': 'barney', 'age': 36 } }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="findKey"></a><code>_.<span class="me1">findKey</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#findKey">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11044" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.findkey" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#find"><code>_.<span class="me1">find</span></code></a> except that it returns the key of the first
element <code>predicate</code> returns truthy for instead of the element itself.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to search.</li>
<li><code><span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(string|undefined)</em>:  Returns the key of the matched element, else <code>undefined</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">&#123;</span><br>&nbsp; <span class="st0">'barney'</span><span class="sy0">:</span> &nbsp;<span class="br0">&#123;</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="st0">'fred'</span><span class="sy0">:</span> &nbsp; &nbsp;<span class="br0">&#123;</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="st0">'pebbles'</span><span class="sy0">:</span> <span class="br0">&#123;</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">&#125;</span><br><span class="br0">&#125;</span><span class="sy0">;</span><br><br>_.<span class="me1">findKey</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>o<span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw1">return</span> o.<span class="me1">age</span> <span class="sy0">&lt;</span> <span class="nu0">40</span><span class="sy0">;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'barney' (iteration order is not guaranteed)</span><br><br><span class="co1">// The `_.matches` iteratee shorthand.</span><br>_.<span class="me1">findKey</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'pebbles'</span><br><br><span class="co1">// The `_.matchesProperty` iteratee shorthand.</span><br>_.<span class="me1">findKey</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'fred'</span><br><br><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">findKey</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'barney'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="findLastKey"></a><code>_.<span class="me1">findLastKey</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#findLastKey">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11081" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.findlastkey" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#findKey"><code>_.<span class="me1">findKey</span></code></a> except that it iterates over elements of
a collection in the opposite order.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to search.</li>
<li><code><span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(string|undefined)</em>:  Returns the key of the matched element, else <code>undefined</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">&#123;</span><br>&nbsp; <span class="st0">'barney'</span><span class="sy0">:</span> &nbsp;<span class="br0">&#123;</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="st0">'fred'</span><span class="sy0">:</span> &nbsp; &nbsp;<span class="br0">&#123;</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="st0">'pebbles'</span><span class="sy0">:</span> <span class="br0">&#123;</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">&#125;</span><br><span class="br0">&#125;</span><span class="sy0">;</span><br><br>_.<span class="me1">findLastKey</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>o<span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw1">return</span> o.<span class="me1">age</span> <span class="sy0">&lt;</span> <span class="nu0">40</span><span class="sy0">;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → returns 'pebbles' assuming `_.findKey` returns 'barney'</span><br><br><span class="co1">// The `_.matches` iteratee shorthand.</span><br>_.<span class="me1">findLastKey</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'barney'</span><br><br><span class="co1">// The `_.matchesProperty` iteratee shorthand.</span><br>_.<span class="me1">findLastKey</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'fred'</span><br><br><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">findLastKey</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'pebbles'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="forIn"></a><code>_.<span class="me1">forIn</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#forIn">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11111" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.forin" title="See the npm package">&#x24C3;</a></p>
<p>Iterates over own and inherited enumerable properties of an object invoking
<code>iteratee</code> for each property. The iteratee is invoked with three arguments:<br>
(value, key, object). Iteratee functions may exit iteration early by explicitly
returning <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to iterate over.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns <code>object</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Foo<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">a</span> <span class="sy0">=</span> <span class="nu0">1</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">b</span> <span class="sy0">=</span> <span class="nu0">2</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br>Foo.<span class="me1">prototype</span>.<span class="me1">c</span> <span class="sy0">=</span> <span class="nu0">3</span><span class="sy0">;</span><br><br>_.<span class="me1">forIn</span><span class="br0">&#40;</span><span class="kw2">new</span> Foo<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>value<span class="sy0">,</span> key<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; console.<span class="me1">log</span><span class="br0">&#40;</span>key<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → logs 'a', 'b', then 'c' (iteration order is not guaranteed)</span></code></pre>
<hr />
</div>
<div>
<h3><a id="forInRight"></a><code>_.<span class="me1">forInRight</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#forInRight">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11141" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.forinright" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#forIn"><code>_.<span class="me1">forIn</span></code></a> except that it iterates over properties of
<code>object</code> in the opposite order.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to iterate over.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns <code>object</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Foo<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">a</span> <span class="sy0">=</span> <span class="nu0">1</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">b</span> <span class="sy0">=</span> <span class="nu0">2</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br>Foo.<span class="me1">prototype</span>.<span class="me1">c</span> <span class="sy0">=</span> <span class="nu0">3</span><span class="sy0">;</span><br><br>_.<span class="me1">forInRight</span><span class="br0">&#40;</span><span class="kw2">new</span> Foo<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>value<span class="sy0">,</span> key<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; console.<span class="me1">log</span><span class="br0">&#40;</span>key<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="forOwn"></a><code>_.<span class="me1">forOwn</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#forOwn">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11173" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.forown" title="See the npm package">&#x24C3;</a></p>
<p>Iterates over own enumerable properties of an object invoking <code>iteratee</code>
for each property. The iteratee is invoked with three arguments:<br>
(value, key, object). Iteratee functions may exit iteration early by
explicitly returning <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to iterate over.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns <code>object</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Foo<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">a</span> <span class="sy0">=</span> <span class="nu0">1</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">b</span> <span class="sy0">=</span> <span class="nu0">2</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br>Foo.<span class="me1">prototype</span>.<span class="me1">c</span> <span class="sy0">=</span> <span class="nu0">3</span><span class="sy0">;</span><br><br>_.<span class="me1">forOwn</span><span class="br0">&#40;</span><span class="kw2">new</span> Foo<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>value<span class="sy0">,</span> key<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; console.<span class="me1">log</span><span class="br0">&#40;</span>key<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → logs 'a' then 'b' (iteration order is not guaranteed)</span></code></pre>
<hr />
</div>
<div>
<h3><a id="forOwnRight"></a><code>_.<span class="me1">forOwnRight</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#forOwnRight">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11201" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.forownright" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#forOwn"><code>_.<span class="me1">forOwn</span></code></a> except that it iterates over properties of
<code>object</code> in the opposite order.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to iterate over.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns <code>object</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Foo<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">a</span> <span class="sy0">=</span> <span class="nu0">1</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">b</span> <span class="sy0">=</span> <span class="nu0">2</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br>Foo.<span class="me1">prototype</span>.<span class="me1">c</span> <span class="sy0">=</span> <span class="nu0">3</span><span class="sy0">;</span><br><br>_.<span class="me1">forOwnRight</span><span class="br0">&#40;</span><span class="kw2">new</span> Foo<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>value<span class="sy0">,</span> key<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; console.<span class="me1">log</span><span class="br0">&#40;</span>key<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="functions"></a><code>_.<span class="me1">functions</span><span class="br0">&#40;</span>object<span class="br0">&#41;</span></code></h3>
<p><a href="#functions">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11226" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.functions" title="See the npm package">&#x24C3;</a></p>
<p>Creates an array of function property names from own enumerable properties
of <code>object</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to inspect.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of property names.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Foo<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">a</span> <span class="sy0">=</span> _.<span class="me1">constant</span><span class="br0">&#40;</span><span class="st0">'a'</span><span class="br0">&#41;</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">b</span> <span class="sy0">=</span> _.<span class="me1">constant</span><span class="br0">&#40;</span><span class="st0">'b'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br>Foo.<span class="me1">prototype</span>.<span class="me1">c</span> <span class="sy0">=</span> _.<span class="me1">constant</span><span class="br0">&#40;</span><span class="st0">'c'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br>_.<span class="me1">functions</span><span class="br0">&#40;</span><span class="kw2">new</span> Foo<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ['a', 'b']</span></code></pre>
<hr />
</div>
<div>
<h3><a id="functionsIn"></a><code>_.<span class="me1">functionsIn</span><span class="br0">&#40;</span>object<span class="br0">&#41;</span></code></h3>
<p><a href="#functionsIn">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11251" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.functionsin" title="See the npm package">&#x24C3;</a></p>
<p>Creates an array of function property names from own and inherited
enumerable properties of <code>object</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to inspect.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of property names.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Foo<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">a</span> <span class="sy0">=</span> _.<span class="me1">constant</span><span class="br0">&#40;</span><span class="st0">'a'</span><span class="br0">&#41;</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">b</span> <span class="sy0">=</span> _.<span class="me1">constant</span><span class="br0">&#40;</span><span class="st0">'b'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br>Foo.<span class="me1">prototype</span>.<span class="me1">c</span> <span class="sy0">=</span> _.<span class="me1">constant</span><span class="br0">&#40;</span><span class="st0">'c'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br>_.<span class="me1">functionsIn</span><span class="br0">&#40;</span><span class="kw2">new</span> Foo<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ['a', 'b', 'c']</span></code></pre>
<hr />
</div>
<div>
<h3><a id="get"></a><code>_.<span class="me1">get</span><span class="br0">&#40;</span>object<span class="sy0">,</span> path<span class="sy0">,</span> <span class="br0">&#91;</span>defaultValue<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#get">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11279" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.get" title="See the npm package">&#x24C3;</a></p>
<p>Gets the value at <code>path</code> of <code>object</code>. If the resolved value is
<code>undefined</code> the <code>defaultValue</code> is used in its place.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to query.</li>
<li><code>path</code> <em>(Array|string)</em>: The path of the property to get.</li>
<li><code><span class="br0">&#91;</span>defaultValue<span class="br0">&#93;</span></code> <em>(&#42;)</em>: The value returned if the resolved value is <code>undefined</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(&#42;)</em>:  Returns the resolved value.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="br0">&#123;</span> <span class="st0">'c'</span><span class="sy0">:</span> <span class="nu0">3</span> <span class="br0">&#125;</span> <span class="br0">&#125;</span><span class="br0">&#93;</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><br>_.<span class="me1">get</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="st0">'a[0].b.c'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 3</span><br><br>_.<span class="me1">get</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'0'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 3</span><br><br>_.<span class="me1">get</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="st0">'a.b.c'</span><span class="sy0">,</span> <span class="st0">'default'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'default'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="has"></a><code>_.<span class="me1">has</span><span class="br0">&#40;</span>object<span class="sy0">,</span> path<span class="br0">&#41;</span></code></h3>
<p><a href="#has">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11310" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.has" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>path</code> is a direct property of <code>object</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to query.</li>
<li><code>path</code> <em>(Array|string)</em>: The path to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>path</code> exists, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="br0">&#123;</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="br0">&#123;</span> <span class="st0">'c'</span><span class="sy0">:</span> <span class="nu0">3</span> <span class="br0">&#125;</span> <span class="br0">&#125;</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><span class="kw2">var</span> other <span class="sy0">=</span> _.<span class="me1">create</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> _.<span class="me1">create</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'b'</span><span class="sy0">:</span> _.<span class="me1">create</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'c'</span><span class="sy0">:</span> <span class="nu0">3</span> <span class="br0">&#125;</span><span class="br0">&#41;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br>_.<span class="me1">has</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="st0">'a'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">has</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="st0">'a.b.c'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">has</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">has</span><span class="br0">&#40;</span>other<span class="sy0">,</span> <span class="st0">'a'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="hasIn"></a><code>_.<span class="me1">hasIn</span><span class="br0">&#40;</span>object<span class="sy0">,</span> path<span class="br0">&#41;</span></code></h3>
<p><a href="#hasIn">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11339" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.hasin" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>path</code> is a direct or inherited property of <code>object</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to query.</li>
<li><code>path</code> <em>(Array|string)</em>: The path to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>path</code> exists, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> _.<span class="me1">create</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> _.<span class="me1">create</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'b'</span><span class="sy0">:</span> _.<span class="me1">create</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'c'</span><span class="sy0">:</span> <span class="nu0">3</span> <span class="br0">&#125;</span><span class="br0">&#41;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br>_.<span class="me1">hasIn</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="st0">'a'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">hasIn</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="st0">'a.b.c'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">hasIn</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">hasIn</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="st0">'b'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="invert"></a><code>_.<span class="me1">invert</span><span class="br0">&#40;</span>object<span class="br0">&#41;</span></code></h3>
<p><a href="#invert">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11360" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.invert" title="See the npm package">&#x24C3;</a></p>
<p>Creates an object composed of the inverted keys and values of <code>object</code>.
If <code>object</code> contains duplicate values, subsequent values overwrite property
assignments of previous values.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to invert.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new inverted object.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><br>_.<span class="me1">invert</span><span class="br0">&#40;</span>object<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { '1': 'c', '2': 'b' }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="invertBy"></a><code>_.<span class="me1">invertBy</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#invertBy">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11389" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.invertby" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#invert"><code>_.<span class="me1">invert</span></code></a> except that the inverted object is generated
from the results of running each element of <code>object</code> through <code>iteratee</code>.
The corresponding inverted value of each inverted key is an array of keys
responsible for generating the inverted value. The iteratee is invoked
with one argument: (value).</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to invert.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The iteratee invoked per element.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new inverted object.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><br>_.<span class="me1">invertBy</span><span class="br0">&#40;</span>object<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { '1': ['a', 'c'], '2': ['b'] }</span><br><br>_.<span class="me1">invertBy</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> <span class="st0">'group'</span> <span class="sy0">+</span> value<span class="sy0">;</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'group1': ['a', 'c'], 'group2': ['b'] }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="invoke"></a><code>_.<span class="me1">invoke</span><span class="br0">&#40;</span>object<span class="sy0">,</span> path<span class="sy0">,</span> <span class="br0">&#91;</span>args<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#invoke">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11414" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.invoke" title="See the npm package">&#x24C3;</a></p>
<p>Invokes the method at <code>path</code> of <code>object</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to query.</li>
<li><code>path</code> <em>(Array|string)</em>: The path of the method to invoke.</li>
<li><code><span class="br0">&#91;</span>args<span class="br0">&#93;</span></code> <em>(…&#42;)</em>: The arguments to invoke the method with.</li>
</ol>
<h4>Returns</h4>
<p><em>(&#42;)</em>:  Returns the result of the invoked method.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="br0">&#123;</span> <span class="st0">'c'</span><span class="sy0">:</span> <span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">&#93;</span> <span class="br0">&#125;</span> <span class="br0">&#125;</span><span class="br0">&#93;</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><br>_.<span class="me1">invoke</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="st0">'a[0].b.c.slice'</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [2, 3]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="keys"></a><code>_.<span class="me1">keys</span><span class="br0">&#40;</span>object<span class="br0">&#41;</span></code></h3>
<p><a href="#keys">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11443" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.keys" title="See the npm package">&#x24C3;</a></p>
<p>Creates an array of the own enumerable property names of <code>object</code>.
<br>
<br>
<strong>Note:</strong> Non-object values are coerced to objects. See the
<a href="http://ecma-international.org/ecma-262/6.0/#sec-object.keys">ES spec</a>
for more details.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to query.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the array of property names.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Foo<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">a</span> <span class="sy0">=</span> <span class="nu0">1</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">b</span> <span class="sy0">=</span> <span class="nu0">2</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br>Foo.<span class="me1">prototype</span>.<span class="me1">c</span> <span class="sy0">=</span> <span class="nu0">3</span><span class="sy0">;</span><br><br>_.<span class="me1">keys</span><span class="br0">&#40;</span><span class="kw2">new</span> Foo<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ['a', 'b'] (iteration order is not guaranteed)</span><br><br>_.<span class="me1">keys</span><span class="br0">&#40;</span><span class="st0">'hi'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ['0', '1']</span></code></pre>
<hr />
</div>
<div>
<h3><a id="keysIn"></a><code>_.<span class="me1">keysIn</span><span class="br0">&#40;</span>object<span class="br0">&#41;</span></code></h3>
<p><a href="#keysIn">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11485" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.keysin" title="See the npm package">&#x24C3;</a></p>
<p>Creates an array of the own and inherited enumerable property names of <code>object</code>.
<br>
<br>
<strong>Note:</strong> Non-object values are coerced to objects.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to query.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the array of property names.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Foo<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">a</span> <span class="sy0">=</span> <span class="nu0">1</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">b</span> <span class="sy0">=</span> <span class="nu0">2</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br>Foo.<span class="me1">prototype</span>.<span class="me1">c</span> <span class="sy0">=</span> <span class="nu0">3</span><span class="sy0">;</span><br><br>_.<span class="me1">keysIn</span><span class="br0">&#40;</span><span class="kw2">new</span> Foo<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ['a', 'b', 'c'] (iteration order is not guaranteed)</span></code></pre>
<hr />
</div>
<div>
<h3><a id="mapKeys"></a><code>_.<span class="me1">mapKeys</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#mapKeys">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11523" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.mapkeys" title="See the npm package">&#x24C3;</a></p>
<p>The opposite of <a href="#mapValues"><code>_.<span class="me1">mapValues</span></code></a>; this method creates an object with the
same values as <code>object</code> and keys generated by running each own enumerable
property of <code>object</code> through <code>iteratee</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to iterate over.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new mapped object.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">mapKeys</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>value<span class="sy0">,</span> key<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> key <span class="sy0">+</span> value<span class="sy0">;</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'a1': 1, 'b2': 2 }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="mapValues"></a><code>_.<span class="me1">mapValues</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#mapValues">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11558" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.mapvalues" title="See the npm package">&#x24C3;</a></p>
<p>Creates an object with the same keys as <code>object</code> and values generated by
running each own enumerable property of <code>object</code> through <code>iteratee</code>. The
iteratee function is invoked with three arguments: (value, key, object).</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to iterate over.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new mapped object.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">&#123;</span><br>&nbsp; <span class="st0">'fred'</span><span class="sy0">:</span> &nbsp; &nbsp;<span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; &nbsp;<span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="st0">'pebbles'</span><span class="sy0">:</span> <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><br><span class="br0">&#125;</span><span class="sy0">;</span><br><br>_.<span class="me1">mapValues</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>o<span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw1">return</span> o.<span class="me1">age</span><span class="sy0">;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)</span><br><br><span class="co1">// The `_.property` iteratee shorthand.</span><br>_.<span class="me1">mapValues</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="st0">'age'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)</span></code></pre>
<hr />
</div>
<div>
<h3><a id="merge"></a><code>_.<span class="me1">merge</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span>sources<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#merge">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11597" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.merge" title="See the npm package">&#x24C3;</a></p>
<p>Recursively merges own and inherited enumerable properties of source objects
into the destination object. Source properties that resolve to <code>undefined</code>
are skipped if a destination value exists. Array and plain object properties
are merged recursively. Other objects and value types are overridden by
assignment. Source objects are applied from left to right. Subsequent
sources overwrite property assignments of previous sources.
<br>
<br>
<strong>Note:</strong> This method mutates <code>object</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The destination object.</li>
<li><code><span class="br0">&#91;</span>sources<span class="br0">&#93;</span></code> <em>(…Object)</em>: The source objects.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns <code>object</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">&#123;</span><br>&nbsp; <span class="st0">'data'</span><span class="sy0">:</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><br><span class="br0">&#125;</span><span class="sy0">;</span><br><br><span class="kw2">var</span> ages <span class="sy0">=</span> <span class="br0">&#123;</span><br>&nbsp; <span class="st0">'data'</span><span class="sy0">:</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span> <span class="br0">&#125;</span><span class="br0">&#93;</span><br><span class="br0">&#125;</span><span class="sy0">;</span><br><br>_.<span class="me1">merge</span><span class="br0">&#40;</span>users<span class="sy0">,</span> ages<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'data': [{ 'user': 'barney', 'age': 36 }, { 'user': 'fred', 'age': 40 }] }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="mergeWith"></a><code>_.<span class="me1">mergeWith</span><span class="br0">&#40;</span>object<span class="sy0">,</span> sources<span class="sy0">,</span> customizer<span class="br0">&#41;</span></code></h3>
<p><a href="#mergeWith">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11638" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.mergewith" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#merge"><code>_.<span class="me1">merge</span></code></a> except that it accepts <code>customizer</code> which
is invoked to produce the merged values of the destination and source
properties. If <code>customizer</code> returns <code>undefined</code> merging is handled by the
method instead. The <code>customizer</code> is invoked with seven arguments:<br>
(objValue, srcValue, key, object, source, stack).
<br>
<br>
<strong>Note:</strong> This method mutates <code>object</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The destination object.</li>
<li><code>sources</code> <em>(…Object)</em>: The source objects.</li>
<li><code>customizer</code> <em>(Function)</em>: The function to customize assigned values.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns <code>object</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> customizer<span class="br0">&#40;</span>objValue<span class="sy0">,</span> srcValue<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>_.<span class="me1">isArray</span><span class="br0">&#40;</span>objValue<span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; &nbsp; <span class="kw1">return</span> objValue.<span class="me1">concat</span><span class="br0">&#40;</span>srcValue<span class="br0">&#41;</span><span class="sy0">;</span><br>&nbsp; <span class="br0">&#125;</span><br><span class="br0">&#125;</span><br><br><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">&#123;</span><br>&nbsp; <span class="st0">'fruits'</span><span class="sy0">:</span> <span class="br0">&#91;</span><span class="st0">'apple'</span><span class="br0">&#93;</span><span class="sy0">,</span><br>&nbsp; <span class="st0">'vegetables'</span><span class="sy0">:</span> <span class="br0">&#91;</span><span class="st0">'beet'</span><span class="br0">&#93;</span><br><span class="br0">&#125;</span><span class="sy0">;</span><br><br><span class="kw2">var</span> other <span class="sy0">=</span> <span class="br0">&#123;</span><br>&nbsp; <span class="st0">'fruits'</span><span class="sy0">:</span> <span class="br0">&#91;</span><span class="st0">'banana'</span><span class="br0">&#93;</span><span class="sy0">,</span><br>&nbsp; <span class="st0">'vegetables'</span><span class="sy0">:</span> <span class="br0">&#91;</span><span class="st0">'carrot'</span><span class="br0">&#93;</span><br><span class="br0">&#125;</span><span class="sy0">;</span><br><br>_.<span class="me1">mergeWith</span><span class="br0">&#40;</span>object<span class="sy0">,</span> other<span class="sy0">,</span> customizer<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'fruits': ['apple', 'banana'], 'vegetables': ['beet', 'carrot'] }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="omit"></a><code>_.<span class="me1">omit</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span>props<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#omit">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11660" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.omit" title="See the npm package">&#x24C3;</a></p>
<p>The opposite of <a href="#pick"><code>_.<span class="me1">pick</span></code></a>; this method creates an object composed of the
own and inherited enumerable properties of <code>object</code> that are not omitted.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The source object.</li>
<li><code><span class="br0">&#91;</span>props<span class="br0">&#93;</span></code> <em>(…(string|string&#91;&#93;)</em>: The property names to omit, specified individually or in arrays.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new object.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="st0">'2'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="sy0">:</span> <span class="nu0">3</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><br>_.<span class="me1">omit</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'b': '2' }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="omitBy"></a><code>_.<span class="me1">omitBy</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#omitBy">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11686" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.omitby" title="See the npm package">&#x24C3;</a></p>
<p>The opposite of <a href="#pickBy"><code>_.<span class="me1">pickBy</span></code></a>; this method creates an object composed of the
own and inherited enumerable properties of <code>object</code> that <code>predicate</code>
doesn’t return truthy for.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The source object.</li>
<li><code><span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The function invoked per property.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new object.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="st0">'2'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="sy0">:</span> <span class="nu0">3</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><br>_.<span class="me1">omitBy</span><span class="br0">&#40;</span>object<span class="sy0">,</span> _.<span class="me1">isNumber</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'b': '2' }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="pick"></a><code>_.<span class="me1">pick</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span>props<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#pick">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11710" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.pick" title="See the npm package">&#x24C3;</a></p>
<p>Creates an object composed of the picked <code>object</code> properties.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The source object.</li>
<li><code><span class="br0">&#91;</span>props<span class="br0">&#93;</span></code> <em>(…(string|string&#91;&#93;)</em>: The property names to pick, specified individually or in arrays.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new object.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="st0">'2'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="sy0">:</span> <span class="nu0">3</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><br>_.<span class="me1">pick</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'a': 1, 'c': 3 }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="pickBy"></a><code>_.<span class="me1">pickBy</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#pickBy">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11731" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.pickby" title="See the npm package">&#x24C3;</a></p>
<p>Creates an object composed of the <code>object</code> properties <code>predicate</code> returns
truthy for. The predicate is invoked with two arguments: (value, key).</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The source object.</li>
<li><code><span class="br0">&#91;</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The function invoked per property.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new object.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="st0">'2'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="sy0">:</span> <span class="nu0">3</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><br>_.<span class="me1">pickBy</span><span class="br0">&#40;</span>object<span class="sy0">,</span> _.<span class="me1">isNumber</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'a': 1, 'c': 3 }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="result"></a><code>_.<span class="me1">result</span><span class="br0">&#40;</span>object<span class="sy0">,</span> path<span class="sy0">,</span> <span class="br0">&#91;</span>defaultValue<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#result">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11763" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.result" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#get"><code>_.<span class="me1">get</span></code></a> except that if the resolved value is a function
it’s invoked with the <code><span class="kw1">this</span></code> binding of its parent object and its result
is returned.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to query.</li>
<li><code>path</code> <em>(Array|string)</em>: The path of the property to resolve.</li>
<li><code><span class="br0">&#91;</span>defaultValue<span class="br0">&#93;</span></code> <em>(&#42;)</em>: The value returned if the resolved value is <code>undefined</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(&#42;)</em>:  Returns the resolved value.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="br0">&#123;</span> <span class="st0">'c1'</span><span class="sy0">:</span> <span class="nu0">3</span><span class="sy0">,</span> <span class="st0">'c2'</span><span class="sy0">:</span> _.<span class="me1">constant</span><span class="br0">&#40;</span><span class="nu0">4</span><span class="br0">&#41;</span> <span class="br0">&#125;</span> <span class="br0">&#125;</span><span class="br0">&#93;</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><br>_.<span class="me1">result</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="st0">'a[0].b.c1'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 3</span><br><br>_.<span class="me1">result</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="st0">'a[0].b.c2'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 4</span><br><br>_.<span class="me1">result</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="st0">'a[0].b.c3'</span><span class="sy0">,</span> <span class="st0">'default'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'default'</span><br><br>_.<span class="me1">result</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="st0">'a[0].b.c3'</span><span class="sy0">,</span> _.<span class="me1">constant</span><span class="br0">&#40;</span><span class="st0">'default'</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'default'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="set"></a><code>_.<span class="me1">set</span><span class="br0">&#40;</span>object<span class="sy0">,</span> path<span class="sy0">,</span> value<span class="br0">&#41;</span></code></h3>
<p><a href="#set">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11804" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.set" title="See the npm package">&#x24C3;</a></p>
<p>Sets the value at <code>path</code> of <code>object</code>. If a portion of <code>path</code> doesn’t exist
it’s created. Arrays are created for missing index properties while objects
are created for all other missing properties. Use <a href="#setWith"><code>_.<span class="me1">setWith</span></code></a> to customize
<code>path</code> creation.
<br>
<br>
<strong>Note:</strong> This method mutates <code>object</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to modify.</li>
<li><code>path</code> <em>(Array|string)</em>: The path of the property to set.</li>
<li><code>value</code> <em>(&#42;)</em>: The value to set.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns <code>object</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="br0">&#123;</span> <span class="st0">'c'</span><span class="sy0">:</span> <span class="nu0">3</span> <span class="br0">&#125;</span> <span class="br0">&#125;</span><span class="br0">&#93;</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><br>_.<span class="me1">set</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="st0">'a[0].b.c'</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">&#41;</span><span class="sy0">;</span><br>console.<span class="me1">log</span><span class="br0">&#40;</span>object.<span class="me1">a</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span>.<span class="me1">b</span>.<span class="me1">c</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 4</span><br><br>_.<span class="me1">set</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="st0">'x[0].y.z'</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">&#41;</span><span class="sy0">;</span><br>console.<span class="me1">log</span><span class="br0">&#40;</span>object.<span class="me1">x</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span>.<span class="me1">y</span>.<span class="me1">z</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 5</span></code></pre>
<hr />
</div>
<div>
<h3><a id="setWith"></a><code>_.<span class="me1">setWith</span><span class="br0">&#40;</span>object<span class="sy0">,</span> path<span class="sy0">,</span> value<span class="sy0">,</span> <span class="br0">&#91;</span>customizer<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#setWith">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11829" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.setwith" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#set"><code>_.<span class="me1">set</span></code></a> except that it accepts <code>customizer</code> which is
invoked to produce the objects of <code>path</code>.  If <code>customizer</code> returns <code>undefined</code>
path creation is handled by the method instead. The <code>customizer</code> is invoked
with three arguments: (nsValue, key, nsObject).
<br>
<br>
<strong>Note:</strong> This method mutates <code>object</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to modify.</li>
<li><code>path</code> <em>(Array|string)</em>: The path of the property to set.</li>
<li><code>value</code> <em>(&#42;)</em>: The value to set.</li>
<li><code><span class="br0">&#91;</span>customizer<span class="br0">&#93;</span></code> <em>(Function)</em>: The function to customize assigned values.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns <code>object</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">setWith</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'0'</span><span class="sy0">:</span> <span class="br0">&#123;</span> <span class="st0">'length'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="st0">'[0][1][2]'</span><span class="sy0">,</span> <span class="nu0">3</span><span class="sy0">,</span> Object<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { '0': { '1': { '2': 3 }, 'length': 2 } }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="toPairs"></a><code>_.<span class="me1">toPairs</span><span class="br0">&#40;</span>object<span class="br0">&#41;</span></code></h3>
<p><a href="#toPairs">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11855" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.topairs" title="See the npm package">&#x24C3;</a></p>
<p>Creates an array of own enumerable key-value pairs for <code>object</code> which
can be consumed by <a href="#fromPairs"><code>_.<span class="me1">fromPairs</span></code></a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to query.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of key-value pairs.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Foo<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">a</span> <span class="sy0">=</span> <span class="nu0">1</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">b</span> <span class="sy0">=</span> <span class="nu0">2</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br>Foo.<span class="me1">prototype</span>.<span class="me1">c</span> <span class="sy0">=</span> <span class="nu0">3</span><span class="sy0">;</span><br><br>_.<span class="me1">toPairs</span><span class="br0">&#40;</span><span class="kw2">new</span> Foo<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [['a', 1], ['b', 2]] (iteration order is not guaranteed)</span></code></pre>
<hr />
</div>
<div>
<h3><a id="toPairsIn"></a><code>_.<span class="me1">toPairsIn</span><span class="br0">&#40;</span>object<span class="br0">&#41;</span></code></h3>
<p><a href="#toPairsIn">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11880" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.topairsin" title="See the npm package">&#x24C3;</a></p>
<p>Creates an array of own and inherited enumerable key-value pairs for
<code>object</code> which can be consumed by <a href="#fromPairs"><code>_.<span class="me1">fromPairs</span></code></a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to query.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of key-value pairs.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Foo<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">a</span> <span class="sy0">=</span> <span class="nu0">1</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">b</span> <span class="sy0">=</span> <span class="nu0">2</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br>Foo.<span class="me1">prototype</span>.<span class="me1">c</span> <span class="sy0">=</span> <span class="nu0">3</span><span class="sy0">;</span><br><br>_.<span class="me1">toPairsIn</span><span class="br0">&#40;</span><span class="kw2">new</span> Foo<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [['a', 1], ['b', 2], ['c', 1]] (iteration order is not guaranteed)</span></code></pre>
<hr />
</div>
<div>
<h3><a id="transform"></a><code>_.<span class="me1">transform</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>accumulator<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#transform">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11912" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.transform" title="See the npm package">&#x24C3;</a></p>
<p>An alternative to <a href="#reduce"><code>_.<span class="me1">reduce</span></code></a>; this method transforms <code>object</code> to a new
<code>accumulator</code> object which is the result of running each of its own enumerable
properties through <code>iteratee</code>, with each invocation potentially mutating
the <code>accumulator</code> object. The iteratee is invoked with four arguments:<br>
(accumulator, value, key, object). Iteratee functions may exit iteration
early by explicitly returning <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Array|Object)</em>: The object to iterate over.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">&#91;</span>accumulator<span class="br0">&#93;</span></code> <em>(&#42;)</em>: The custom accumulator value.</li>
</ol>
<h4>Returns</h4>
<p><em>(&#42;)</em>:  Returns the accumulated value.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">transform</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>result<span class="sy0">,</span> n<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; result.<span class="me1">push</span><span class="br0">&#40;</span>n <span class="sy0">*=</span> n<span class="br0">&#41;</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">%</span> <span class="nu0">2</span> <span class="sy0">==</span> <span class="nu0">0</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [4, 9]</span><br><br>_.<span class="me1">transform</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>result<span class="sy0">,</span> value<span class="sy0">,</span> key<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="br0">&#40;</span>result<span class="br0">&#91;</span>value<span class="br0">&#93;</span> <span class="sy0">||</span> <span class="br0">&#40;</span>result<span class="br0">&#91;</span>value<span class="br0">&#93;</span> <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>.<span class="me1">push</span><span class="br0">&#40;</span>key<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { '1': ['a', 'c'], '2': ['b'] }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="unset"></a><code>_.<span class="me1">unset</span><span class="br0">&#40;</span>object<span class="sy0">,</span> path<span class="br0">&#41;</span></code></h3>
<p><a href="#unset">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11960" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.unset" title="See the npm package">&#x24C3;</a></p>
<p>Removes the property at <code>path</code> of <code>object</code>.
<br>
<br>
<strong>Note:</strong> This method mutates <code>object</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to modify.</li>
<li><code>path</code> <em>(Array|string)</em>: The path of the property to unset.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if the property is deleted, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="br0">&#123;</span> <span class="st0">'c'</span><span class="sy0">:</span> <span class="nu0">7</span> <span class="br0">&#125;</span> <span class="br0">&#125;</span><span class="br0">&#93;</span> <span class="br0">&#125;</span><span class="sy0">;</span><br>_.<span class="me1">unset</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="st0">'a[0].b.c'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>console.<span class="me1">log</span><span class="br0">&#40;</span>object<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'a': [{ 'b': {} }] };</span><br><br>_.<span class="me1">unset</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="st0">'a[0].b.c'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>console.<span class="me1">log</span><span class="br0">&#40;</span>object<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'a': [{ 'b': {} }] };</span></code></pre>
<hr />
</div>
<div>
<h3><a id="values"></a><code>_.<span class="me1">values</span><span class="br0">&#40;</span>object<span class="br0">&#41;</span></code></h3>
<p><a href="#values">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L11989" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.values" title="See the npm package">&#x24C3;</a></p>
<p>Creates an array of the own enumerable property values of <code>object</code>.
<br>
<br>
<strong>Note:</strong> Non-object values are coerced to objects.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to query.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the array of property values.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Foo<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">a</span> <span class="sy0">=</span> <span class="nu0">1</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">b</span> <span class="sy0">=</span> <span class="nu0">2</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br>Foo.<span class="me1">prototype</span>.<span class="me1">c</span> <span class="sy0">=</span> <span class="nu0">3</span><span class="sy0">;</span><br><br>_.<span class="me1">values</span><span class="br0">&#40;</span><span class="kw2">new</span> Foo<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2] (iteration order is not guaranteed)</span><br><br>_.<span class="me1">values</span><span class="br0">&#40;</span><span class="st0">'hi'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ['h', 'i']</span></code></pre>
<hr />
</div>
<div>
<h3><a id="valuesIn"></a><code>_.<span class="me1">valuesIn</span><span class="br0">&#40;</span>object<span class="br0">&#41;</span></code></h3>
<p><a href="#valuesIn">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12015" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.valuesin" title="See the npm package">&#x24C3;</a></p>
<p>Creates an array of the own and inherited enumerable property values of <code>object</code>.
<br>
<br>
<strong>Note:</strong> Non-object values are coerced to objects.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to query.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the array of property values.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Foo<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">a</span> <span class="sy0">=</span> <span class="nu0">1</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">b</span> <span class="sy0">=</span> <span class="nu0">2</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br>Foo.<span class="me1">prototype</span>.<span class="me1">c</span> <span class="sy0">=</span> <span class="nu0">3</span><span class="sy0">;</span><br><br>_.<span class="me1">valuesIn</span><span class="br0">&#40;</span><span class="kw2">new</span> Foo<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3] (iteration order is not guaranteed)</span></code></pre>
<hr />
</div>
</div>
<div>
<h2><code>“Seq” Methods</code></h2>
<div>
<h3><a id="_"></a><code>_<span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#_">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L1479" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a></p>
<p>Creates a <code>lodash</code> object which wraps <code>value</code> to enable implicit method
chaining. Methods that operate on and return arrays, collections, and
functions can be chained together. Methods that retrieve a single value or
may return a primitive value will automatically end the chain sequence and
return the unwrapped value. Otherwise, the value must be unwrapped with
<code>_#<span class=me1>value</span></code>.
<br>
<br>
Explicit chaining, which must be unwrapped with <code>_#<span class=me1>value</span></code> in all cases,
may be enabled using <a href="#chain"><code>_.<span class="me1">chain</span></code></a>.
<br>
<br>
The execution of chained methods is lazy, that is, it’s deferred until
<code>_#<span class=me1>value</span></code> is implicitly or explicitly called.
<br>
<br>
Lazy evaluation allows several methods to support shortcut fusion. Shortcut
fusion is an optimization to merge iteratee calls; this avoids the creation
of intermediate arrays and can greatly reduce the number of iteratee executions.
Sections of a chain sequence qualify for shortcut fusion if the section is
applied to an array of at least two hundred elements and any iteratees
accept only one argument. The heuristic for whether a section qualifies
for shortcut fusion is subject to change.
<br>
<br>
Chaining is supported in custom builds as long as the <code>_#<span class=me1>value</span></code> method is
directly or indirectly included in the build.
<br>
<br>
In addition to lodash methods, wrappers have <code>Array</code> and <code>String</code> methods.
<br>
<br>
The wrapper <code>Array</code> methods are:<br>
<code>concat</code>, <code>join</code>, <code>pop</code>, <code>push</code>, <code>shift</code>, <code>sort</code>, <code>splice</code>, and <code>unshift</code>
<br>
<br>
The wrapper <code>String</code> methods are:<br>
<code>replace</code> and <code>split</code>
<br>
<br>
The wrapper methods that support shortcut fusion are:<br>
<code>at</code>, <code>compact</code>, <code>drop</code>, <code>dropRight</code>, <code>dropWhile</code>, <code>filter</code>, <code>find</code>,
<code>findLast</code>, <code>head</code>, <code>initial</code>, <code>last</code>, <code>map</code>, <code>reject</code>, <code>reverse</code>, <code>slice</code>,
<code>tail</code>, <code>take</code>, <code>takeRight</code>, <code>takeRightWhile</code>, <code>takeWhile</code>, and <code>toArray</code>
<br>
<br>
The chainable wrapper methods are:<br>
<code>after</code>, <code>ary</code>, <code>assign</code>, <code>assignIn</code>, <code>assignInWith</code>, <code>assignWith</code>, <code>at</code>,
<code>before</code>, <code>bind</code>, <code>bindAll</code>, <code>bindKey</code>, <code>castArray</code>, <code>chain</code>, <code>chunk</code>,
<code>commit</code>, <code>compact</code>, <code>concat</code>, <code>conforms</code>, <code>constant</code>, <code>countBy</code>, <code>create</code>,
<code>curry</code>, <code>debounce</code>, <code>defaults</code>, <code>defaultsDeep</code>, <code>defer</code>, <code>delay</code>, <code>difference</code>,
<code>differenceBy</code>, <code>differenceWith</code>, <code>drop</code>, <code>dropRight</code>, <code>dropRightWhile</code>,
<code>dropWhile</code>, <code>fill</code>, <code>filter</code>, <code>flatten</code>, <code>flattenDeep</code>, <code>flattenDepth</code>,
<code>flip</code>, <code>flow</code>, <code>flowRight</code>, <code>fromPairs</code>, <code>functions</code>, <code>functionsIn</code>,
<code>groupBy</code>, <code>initial</code>, <code>intersection</code>, <code>intersectionBy</code>, <code>intersectionWith</code>,
<code>invert</code>, <code>invertBy</code>, <code>invokeMap</code>, <code>iteratee</code>, <code>keyBy</code>, <code>keys</code>, <code>keysIn</code>,
<code>map</code>, <code>mapKeys</code>, <code>mapValues</code>, <code>matches</code>, <code>matchesProperty</code>, <code>memoize</code>,
<code>merge</code>, <code>mergeWith</code>, <code>method</code>, <code>methodOf</code>, <code>mixin</code>, <code>negate</code>, <code>nthArg</code>,
<code>omit</code>, <code>omitBy</code>, <code>once</code>, <code>orderBy</code>, <code>over</code>, <code>overArgs</code>, <code>overEvery</code>,
<code>overSome</code>, <code>partial</code>, <code>partialRight</code>, <code>partition</code>, <code>pick</code>, <code>pickBy</code>, <code>plant</code>,
<code>property</code>, <code>propertyOf</code>, <code>pull</code>, <code>pullAll</code>, <code>pullAllBy</code>, <code>pullAt</code>, <code>push</code>,
<code>range</code>, <code>rangeRight</code>, <code>rearg</code>, <code>reject</code>, <code>remove</code>, <code>rest</code>, <code>reverse</code>,
<code>sampleSize</code>, <code>set</code>, <code>setWith</code>, <code>shuffle</code>, <code>slice</code>, <code>sort</code>, <code>sortBy</code>,
<code>splice</code>, <code>spread</code>, <code>tail</code>, <code>take</code>, <code>takeRight</code>, <code>takeRightWhile</code>,
<code>takeWhile</code>, <code>tap</code>, <code>throttle</code>, <code>thru</code>, <code>toArray</code>, <code>toPairs</code>, <code>toPairsIn</code>,
<code>toPath</code>, <code>toPlainObject</code>, <code>transform</code>, <code>unary</code>, <code>union</code>, <code>unionBy</code>,
<code>unionWith</code>, <code>uniq</code>, <code>uniqBy</code>, <code>uniqWith</code>, <code>unset</code>, <code>unshift</code>, <code>unzip</code>,
<code>unzipWith</code>, <code>values</code>, <code>valuesIn</code>, <code>without</code>, <code>wrap</code>, <code>xor</code>, <code>xorBy</code>,
<code>xorWith</code>, <code>zip</code>, <code>zipObject</code>, <code>zipObjectDeep</code>, and <code>zipWith</code>
<br>
<br>
The wrapper methods that are <strong>not</strong> chainable by default are:<br>
<code>add</code>, <code>attempt</code>, <code>camelCase</code>, <code>capitalize</code>, <code>ceil</code>, <code>clamp</code>, <code>clone</code>,
<code>cloneDeep</code>, <code>cloneDeepWith</code>, <code>cloneWith</code>, <code>deburr</code>, <code>endsWith</code>, <code>eq</code>,
<code>escape</code>, <code>escapeRegExp</code>, <code>every</code>, <code>find</code>, <code>findIndex</code>, <code>findKey</code>, <code>findLast</code>,
<code>findLastIndex</code>, <code>findLastKey</code>, <code>floor</code>, <code>forEach</code>, <code>forEachRight</code>, <code>forIn</code>,
<code>forInRight</code>, <code>forOwn</code>, <code>forOwnRight</code>, <code>get</code>, <code>gt</code>, <code>gte</code>, <code>has</code>, <code>hasIn</code>,
<code>head</code>, <code>identity</code>, <code>includes</code>, <code>indexOf</code>, <code>inRange</code>, <code>invoke</code>, <code>isArguments</code>,
<code>isArray</code>, <code>isArrayBuffer</code>, <code>isArrayLike</code>, <code>isArrayLikeObject</code>, <code>isBoolean</code>,
<code>isBuffer</code>, <code>isDate</code>, <code>isElement</code>, <code>isEmpty</code>, <code>isEqual</code>, <code>isEqualWith</code>,
<code>isError</code>, <code>isFinite</code>, <code>isFunction</code>, <code>isInteger</code>, <code>isLength</code>, <code>isMap</code>,
<code>isMatch</code>, <code>isMatchWith</code>, <code>isNaN</code>, <code>isNative</code>, <code>isNil</code>, <code>isNull</code>, <code>isNumber</code>,
<code>isObject</code>, <code>isObjectLike</code>, <code>isPlainObject</code>, <code>isRegExp</code>, <code>isSafeInteger</code>,
<code>isSet</code>, <code>isString</code>, <code>isUndefined</code>, <code>isTypedArray</code>, <code>isWeakMap</code>, <code>isWeakSet</code>,
<code>join</code>, <code>kebabCase</code>, <code>last</code>, <code>lastIndexOf</code>, <code>lowerCase</code>, <code>lowerFirst</code>,
<code>lt</code>, <code>lte</code>, <code>max</code>, <code>maxBy</code>, <code>mean</code>, <code>min</code>, <code>minBy</code>, <code>noConflict</code>, <code>noop</code>,
<code>now</code>, <code>pad</code>, <code>padEnd</code>, <code>padStart</code>, <code>parseInt</code>, <code>pop</code>, <code>random</code>, <code>reduce</code>,
<code>reduceRight</code>, <code>repeat</code>, <code>result</code>, <code>round</code>, <code>runInContext</code>, <code>sample</code>,
<code>shift</code>, <code>size</code>, <code>snakeCase</code>, <code>some</code>, <code>sortedIndex</code>, <code>sortedIndexBy</code>,
<code>sortedLastIndex</code>, <code>sortedLastIndexBy</code>, <code>startCase</code>, <code>startsWith</code>, <code>subtract</code>,
<code>sum</code>, <code>sumBy</code>, <code>template</code>, <code>times</code>, <code>toLower</code>, <code>toInteger</code>, <code>toLength</code>,
<code>toNumber</code>, <code>toSafeInteger</code>, <code>toString</code>, <code>toUpper</code>, <code>trim</code>, <code>trimEnd</code>,
<code>trimStart</code>, <code>truncate</code>, <code>unescape</code>, <code>uniqueId</code>, <code>upperCase</code>, <code>upperFirst</code>,
<code>value</code>, and <code>words</code></p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to wrap in a <code>lodash</code> instance.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new <code>lodash</code> wrapper instance.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> square<span class="br0">&#40;</span>n<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">*</span> n<span class="sy0">;</span><br><span class="br0">&#125;</span><br><br><span class="kw2">var</span> wrapped <span class="sy0">=</span> _<span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br><span class="co1">// Returns an unwrapped value.</span><br>wrapped.<span class="me1">reduce</span><span class="br0">&#40;</span>_.<span class="me1">add</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 6</span><br><br><span class="co1">// Returns a wrapped value.</span><br><span class="kw2">var</span> squares <span class="sy0">=</span> wrapped.<span class="me1">map</span><span class="br0">&#40;</span>square<span class="br0">&#41;</span><span class="sy0">;</span><br><br>_.<span class="me1">isArray</span><span class="br0">&#40;</span>squares<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">isArray</span><span class="br0">&#40;</span>squares.<span class="me1">value</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr />
</div>
<div>
<h3><a id="chain"></a><code>_.<span class="me1">chain</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#chain">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7160" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a></p>
<p>Creates a <code>lodash</code> object that wraps <code>value</code> with explicit method chaining enabled.
The result of such method chaining must be unwrapped with <code>_#<span class=me1>value</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to wrap.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new <code>lodash</code> wrapper instance.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">&#91;</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> &nbsp;<span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; &nbsp;<span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><br><span class="br0">&#93;</span><span class="sy0">;</span><br><br><span class="kw2">var</span> youngest <span class="sy0">=</span> _<br>&nbsp; .<span class="me1">chain</span><span class="br0">&#40;</span>users<span class="br0">&#41;</span><br>&nbsp; .<span class="me1">sortBy</span><span class="br0">&#40;</span><span class="st0">'age'</span><span class="br0">&#41;</span><br>&nbsp; .<span class="me1">map</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span>o<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; &nbsp; <span class="kw1">return</span> o.<span class="me1">user</span> <span class="sy0">+</span> <span class="st0">' is '</span> <span class="sy0">+</span> o.<span class="me1">age</span><span class="sy0">;</span><br>&nbsp; <span class="br0">&#125;</span><span class="br0">&#41;</span><br>&nbsp; .<span class="me1">head</span><span class="br0">&#40;</span><span class="br0">&#41;</span><br>&nbsp; .<span class="me1">value</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'pebbles is 1'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="tap"></a><code>_.<span class="me1">tap</span><span class="br0">&#40;</span>value<span class="sy0">,</span> interceptor<span class="br0">&#41;</span></code></h3>
<p><a href="#tap">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7188" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a></p>
<p>This method invokes <code>interceptor</code> and returns <code>value</code>. The interceptor
is invoked with one argument; (value). The purpose of this method is to
"tap into" a method chain in order to modify intermediate results.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to provide to <code>interceptor</code>.</li>
<li><code>interceptor</code> <em>(Function)</em>: The function to invoke.</li>
</ol>
<h4>Returns</h4>
<p><em>(&#42;)</em>:  Returns <code>value</code>.</p>
<h4>Example</h4>
<pre><code>_<span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="br0">&#41;</span><br>&nbsp;.<span class="me1">tap</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; &nbsp;<span class="co1">// Mutate input array.</span><br>&nbsp; &nbsp;array.<span class="me1">pop</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br>&nbsp;<span class="br0">&#125;</span><span class="br0">&#41;</span><br>&nbsp;.<span class="me1">reverse</span><span class="br0">&#40;</span><span class="br0">&#41;</span><br>&nbsp;.<span class="me1">value</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [2, 1]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="thru"></a><code>_.<span class="me1">thru</span><span class="br0">&#40;</span>value<span class="sy0">,</span> interceptor<span class="br0">&#41;</span></code></h3>
<p><a href="#thru">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7215" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a></p>
<p>This method is like <a href="#tap"><code>_.<span class="me1">tap</span></code></a> except that it returns the result of <code>interceptor</code>.
The purpose of this method is to "pass thru" values replacing intermediate
results in a method chain.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to provide to <code>interceptor</code>.</li>
<li><code>interceptor</code> <em>(Function)</em>: The function to invoke.</li>
</ol>
<h4>Returns</h4>
<p><em>(&#42;)</em>:  Returns the result of <code>interceptor</code>.</p>
<h4>Example</h4>
<pre><code>_<span class="br0">&#40;</span><span class="st0">' &nbsp;abc &nbsp;'</span><span class="br0">&#41;</span><br>&nbsp;.<span class="me1">chain</span><span class="br0">&#40;</span><span class="br0">&#41;</span><br>&nbsp;.<span class="me1">trim</span><span class="br0">&#40;</span><span class="br0">&#41;</span><br>&nbsp;.<span class="me1">thru</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; &nbsp;<span class="kw1">return</span> <span class="br0">&#91;</span>value<span class="br0">&#93;</span><span class="sy0">;</span><br>&nbsp;<span class="br0">&#125;</span><span class="br0">&#41;</span><br>&nbsp;.<span class="me1">value</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ['abc']</span></code></pre>
<hr />
</div>
<div>
<h3><a id="prototype-Symbol-iterator"></a><code>_.<span class="me1">prototype</span><span class="br0">&#91;</span>Symbol.<span class="me1">iterator</span><span class="br0">&#93;</span><span class="br0">&#40;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#prototype-Symbol-iterator">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7391" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a></p>
<p>Enables the wrapper to be iterable.</p>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the wrapper object.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> wrapped <span class="sy0">=</span> _<span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br>wrapped<span class="br0">&#91;</span>Symbol.<span class="me1">iterator</span><span class="br0">&#93;</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="sy0">===</span> wrapped<span class="sy0">;</span><br><span class="co1">// → true</span><br><br>Array.<span class="me1">from</span><span class="br0">&#40;</span>wrapped<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="prototype-at"></a><code>_.<span class="me1">prototype</span>.<span class="me1">at</span><span class="br0">&#40;</span><span class="br0">&#91;</span>paths<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#prototype-at">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7238" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a></p>
<p>This method is the wrapper version of <a href="#at"><code>_.<span class="me1">at</span></code></a>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>paths<span class="br0">&#93;</span></code> <em>(…(string|string&#91;&#93;)</em>: The property paths of elements to pick, specified individually or in arrays.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new <code>lodash</code> wrapper instance.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="br0">&#91;</span><span class="br0">&#123;</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="br0">&#123;</span> <span class="st0">'c'</span><span class="sy0">:</span> <span class="nu0">3</span> <span class="br0">&#125;</span> <span class="br0">&#125;</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">&#93;</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><br>_<span class="br0">&#40;</span>object<span class="br0">&#41;</span>.<span class="me1">at</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="st0">'a[0].b.c'</span><span class="sy0">,</span> <span class="st0">'a[1]'</span><span class="br0">&#93;</span><span class="br0">&#41;</span>.<span class="me1">value</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [3, 4]</span><br><br>_<span class="br0">&#40;</span><span class="br0">&#91;</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="br0">&#93;</span><span class="br0">&#41;</span>.<span class="me1">at</span><span class="br0">&#40;</span><span class="nu0">0</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span>.<span class="me1">value</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ['a', 'c']</span></code></pre>
<hr />
</div>
<div>
<h3><a id="prototype-chain"></a><code>_.<span class="me1">prototype</span>.<span class="me1">chain</span><span class="br0">&#40;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#prototype-chain">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7289" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a></p>
<p>Enables explicit method chaining on the wrapper object.</p>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new <code>lodash</code> wrapper instance.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">&#91;</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span> <span class="br0">&#125;</span><br><span class="br0">&#93;</span><span class="sy0">;</span><br><br><span class="co1">// A sequence without explicit chaining.</span><br>_<span class="br0">&#40;</span>users<span class="br0">&#41;</span>.<span class="me1">head</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'user': 'barney', 'age': 36 }</span><br><br><span class="co1">// A sequence with explicit chaining.</span><br>_<span class="br0">&#40;</span>users<span class="br0">&#41;</span><br>&nbsp; .<span class="me1">chain</span><span class="br0">&#40;</span><span class="br0">&#41;</span><br>&nbsp; .<span class="me1">head</span><span class="br0">&#40;</span><span class="br0">&#41;</span><br>&nbsp; .<span class="me1">pick</span><span class="br0">&#40;</span><span class="st0">'user'</span><span class="br0">&#41;</span><br>&nbsp; .<span class="me1">value</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'user': 'barney' }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="prototype-commit"></a><code>_.<span class="me1">prototype</span>.<span class="me1">commit</span><span class="br0">&#40;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#prototype-commit">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7318" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a></p>
<p>Executes the chained sequence and returns the wrapped result.</p>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new <code>lodash</code> wrapper instance.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> array <span class="sy0">=</span> <span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="sy0">;</span><br><span class="kw2">var</span> wrapped <span class="sy0">=</span> _<span class="br0">&#40;</span>array<span class="br0">&#41;</span>.<span class="me1">push</span><span class="br0">&#40;</span><span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br>console.<span class="me1">log</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2]</span><br><br>wrapped <span class="sy0">=</span> wrapped.<span class="me1">commit</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br>console.<span class="me1">log</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span><br><br>wrapped.<span class="me1">last</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 3</span><br><br>console.<span class="me1">log</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="prototype-flatMap"></a><code>_.<span class="me1">prototype</span>.<span class="me1">flatMap</span><span class="br0">&#40;</span><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#prototype-flatMap">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7339" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a></p>
<p>This method is the wrapper version of <a href="#flatMap"><code>_.<span class="me1">flatMap</span></code></a>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new <code>lodash</code> wrapper instance.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> duplicate<span class="br0">&#40;</span>n<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> <span class="br0">&#91;</span>n<span class="sy0">,</span> n<span class="br0">&#93;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br>_<span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="br0">&#41;</span>.<span class="me1">flatMap</span><span class="br0">&#40;</span>duplicate<span class="br0">&#41;</span>.<span class="me1">value</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 1, 2, 2]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="prototype-next"></a><code>_.<span class="me1">prototype</span>.<span class="me1">next</span><span class="br0">&#40;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#prototype-next">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7364" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a></p>
<p>Gets the next value on a wrapped object following the
<a href="https://mdn.io/iteration_protocols#iterator">iterator protocol</a>.</p>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the next iterator value.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> wrapped <span class="sy0">=</span> _<span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br>wrapped.<span class="me1">next</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'done': false, 'value': 1 }</span><br><br>wrapped.<span class="me1">next</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'done': false, 'value': 2 }</span><br><br>wrapped.<span class="me1">next</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'done': true, 'value': undefined }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="prototype-plant"></a><code>_.<span class="me1">prototype</span>.<span class="me1">plant</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#prototype-plant">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7418" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a></p>
<p>Creates a clone of the chained sequence planting <code>value</code> as the wrapped value.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to plant.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new <code>lodash</code> wrapper instance.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> square<span class="br0">&#40;</span>n<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">*</span> n<span class="sy0">;</span><br><span class="br0">&#125;</span><br><br><span class="kw2">var</span> wrapped <span class="sy0">=</span> _<span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="br0">&#41;</span>.<span class="me1">map</span><span class="br0">&#40;</span>square<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="kw2">var</span> other <span class="sy0">=</span> wrapped.<span class="me1">plant</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br>other.<span class="me1">value</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [9, 16]</span><br><br>wrapped.<span class="me1">value</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 4]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="prototype-reverse"></a><code>_.<span class="me1">prototype</span>.<span class="me1">reverse</span><span class="br0">&#40;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#prototype-reverse">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7457" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a></p>
<p>This method is the wrapper version of <a href="#reverse"><code>_.<span class="me1">reverse</span></code></a>.
<br>
<br>
<strong>Note:</strong> This method mutates the wrapped array.</p>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new <code>lodash</code> wrapper instance.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> array <span class="sy0">=</span> <span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_<span class="br0">&#40;</span>array<span class="br0">&#41;</span>.<span class="me1">reverse</span><span class="br0">&#40;</span><span class="br0">&#41;</span>.<span class="me1">value</span><span class="br0">&#40;</span><span class="br0">&#41;</span><br><span class="co1">// → [3, 2, 1]</span><br><br>console.<span class="me1">log</span><span class="br0">&#40;</span>array<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [3, 2, 1]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="prototype-value"></a><code>_.<span class="me1">prototype</span>.<span class="me1">value</span><span class="br0">&#40;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#prototype-value">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L7488" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a></p>
<p>Executes the chained sequence to extract the unwrapped value.</p>
<h4>Aliases</h4>
<p><em>_.prototype.toJSON, _.prototype.valueOf</em></p>
<h4>Returns</h4>
<p><em>(&#42;)</em>:  Returns the resolved unwrapped value.</p>
<h4>Example</h4>
<pre><code>_<span class="br0">&#40;</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#93;</span><span class="br0">&#41;</span>.<span class="me1">value</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span></code></pre>
<hr />
</div>
</div>
<div>
<h2><code>“String” Methods</code></h2>
<div>
<h3><a id="camelCase"></a><code>_.<span class="me1">camelCase</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#camelCase">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12193" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.camelcase" title="See the npm package">&#x24C3;</a></p>
<p>Converts <code>string</code> to <a href="https://en.wikipedia.org/wiki/CamelCase">camel case</a>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to convert.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the camel cased string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">camelCase</span><span class="br0">&#40;</span><span class="st0">'Foo Bar'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'fooBar'</span><br><br>_.<span class="me1">camelCase</span><span class="br0">&#40;</span><span class="st0">'--foo-bar'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'fooBar'</span><br><br>_.<span class="me1">camelCase</span><span class="br0">&#40;</span><span class="st0">'__foo_bar__'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'fooBar'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="capitalize"></a><code>_.<span class="me1">capitalize</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#capitalize">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12212" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.capitalize" title="See the npm package">&#x24C3;</a></p>
<p>Converts the first character of <code>string</code> to upper case and the remaining
to lower case.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to capitalize.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the capitalized string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">capitalize</span><span class="br0">&#40;</span><span class="st0">'FRED'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'Fred'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="deburr"></a><code>_.<span class="me1">deburr</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#deburr">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12230" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.deburr" title="See the npm package">&#x24C3;</a></p>
<p>Deburrs <code>string</code> by converting <a href="https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table">latin-1 supplementary letters</a>
to basic latin letters and removing <a href="https://en.wikipedia.org/wiki/Combining_Diacritical_Marks">combining diacritical marks</a>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to deburr.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the deburred string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">deburr</span><span class="br0">&#40;</span><span class="st0">'déjà vu'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'deja vu'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="endsWith"></a><code>_.<span class="me1">endsWith</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>target<span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>position<span class="sy0">=</span>string.<span class="me1">length</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#endsWith">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12256" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.endswith" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>string</code> ends with the given target string.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to search.</li>
<li><code><span class="br0">&#91;</span>target<span class="br0">&#93;</span></code> <em>(string)</em>: The string to search for.</li>
<li><code><span class="br0">&#91;</span>position<span class="sy0">=</span>string.<span class="me1">length</span><span class="br0">&#93;</span></code> <em>(number)</em>: The position to search from.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>string</code> ends with <code>target</code>, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">endsWith</span><span class="br0">&#40;</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">endsWith</span><span class="br0">&#40;</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">endsWith</span><span class="br0">&#40;</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr />
</div>
<div>
<h3><a id="escape"></a><code>_.<span class="me1">escape</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#escape">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12301" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.escape" title="See the npm package">&#x24C3;</a></p>
<p>Converts the characters "&amp;", "&lt;", ">", '"', "'", and "&#96;" in <code>string</code> to
their corresponding HTML entities.
<br>
<br>
<strong>Note:</strong> No other characters are escaped. To escape additional
characters use a third-party library like <a href="https://mths.be/he"><em>he</em></a>.
<br>
<br>
Though the ">" character is escaped for symmetry, characters like
">" and "/" don’t need escaping in HTML and have no special meaning
unless they're part of a tag or unquoted attribute value.
See <a href="https://mathiasbynens.be/notes/ambiguous-ampersands">Mathias Bynens’s article</a>
(under "semi-related fun fact") for more details.
<br>
<br>
Backticks are escaped because in IE &lt; 9, they can break out of
attribute values or HTML comments. See <a href="https://html5sec.org/#59">#59</a>,
<a href="https://html5sec.org/#102">#102</a>, <a href="https://html5sec.org/#108">#108</a>, and
<a href="https://html5sec.org/#133">#133</a> of the <a href="https://html5sec.org/">HTML5 Security Cheatsheet</a>
for more details.
<br>
<br>
When working with HTML you should always <a href="http://wonko.com/post/html-escaping">quote attribute values</a>
to reduce XSS vectors.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to escape.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the escaped string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">escape</span><span class="br0">&#40;</span><span class="st0">'fred, barney, &amp; pebbles'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'fred, barney, &amp;amp; pebbles'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="escapeRegExp"></a><code>_.<span class="me1">escapeRegExp</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#escapeRegExp">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12322" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.escaperegexp" title="See the npm package">&#x24C3;</a></p>
<p>Escapes the <code>RegExp</code> special characters "^", "$", "\", ".", "*", "+",
"?", "(", ")", "[", "]", "{", "}", and "|" in <code>string</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to escape.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the escaped string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">escapeRegExp</span><span class="br0">&#40;</span><span class="st0">'[lodash](https://lodash.com/)'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → '\[lodash\]\(https://lodash\.com/\)'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="kebabCase"></a><code>_.<span class="me1">kebabCase</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#kebabCase">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12348" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.kebabcase" title="See the npm package">&#x24C3;</a></p>
<p>Converts <code>string</code> to <a href="https://en.wikipedia.org/wiki/Letter_case#Special_case_styles">kebab case</a>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to convert.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the kebab cased string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">kebabCase</span><span class="br0">&#40;</span><span class="st0">'Foo Bar'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'foo-bar'</span><br><br>_.<span class="me1">kebabCase</span><span class="br0">&#40;</span><span class="st0">'fooBar'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'foo-bar'</span><br><br>_.<span class="me1">kebabCase</span><span class="br0">&#40;</span><span class="st0">'__foo_bar__'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'foo-bar'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="lowerCase"></a><code>_.<span class="me1">lowerCase</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#lowerCase">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12371" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.lowercase" title="See the npm package">&#x24C3;</a></p>
<p>Converts <code>string</code>, as space separated words, to lower case.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to convert.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the lower cased string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">lowerCase</span><span class="br0">&#40;</span><span class="st0">'--Foo-Bar'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'foo bar'</span><br><br>_.<span class="me1">lowerCase</span><span class="br0">&#40;</span><span class="st0">'fooBar'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'foo bar'</span><br><br>_.<span class="me1">lowerCase</span><span class="br0">&#40;</span><span class="st0">'__FOO_BAR__'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'foo bar'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="lowerFirst"></a><code>_.<span class="me1">lowerFirst</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#lowerFirst">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12391" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.lowerfirst" title="See the npm package">&#x24C3;</a></p>
<p>Converts the first character of <code>string</code> to lower case.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to convert.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the converted string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">lowerFirst</span><span class="br0">&#40;</span><span class="st0">'Fred'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'fred'</span><br><br>_.<span class="me1">lowerFirst</span><span class="br0">&#40;</span><span class="st0">'FRED'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'fRED'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="pad"></a><code>_.<span class="me1">pad</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>length<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>chars<span class="sy0">=</span><span class="st0">' '</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#pad">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12433" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.pad" title="See the npm package">&#x24C3;</a></p>
<p>Pads <code>string</code> on the left and right sides if it’s shorter than <code>length</code>.
Padding characters are truncated if they can’t be evenly divided by <code>length</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to pad.</li>
<li><code><span class="br0">&#91;</span>length<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span></code> <em>(number)</em>: The padding length.</li>
<li><code><span class="br0">&#91;</span>chars<span class="sy0">=</span><span class="st0">' '</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string used as padding.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the padded string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">pad</span><span class="br0">&#40;</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="nu0">8</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ' &nbsp;abc &nbsp; '</span><br><br>_.<span class="me1">pad</span><span class="br0">&#40;</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="nu0">8</span><span class="sy0">,</span> <span class="st0">'_-'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → '_-abc_-_'</span><br><br>_.<span class="me1">pad</span><span class="br0">&#40;</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'abc'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="padEnd"></a><code>_.<span class="me1">padEnd</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>length<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>chars<span class="sy0">=</span><span class="st0">' '</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#padEnd">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12470" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.padend" title="See the npm package">&#x24C3;</a></p>
<p>Pads <code>string</code> on the right side if it’s shorter than <code>length</code>. Padding
characters are truncated if they exceed <code>length</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to pad.</li>
<li><code><span class="br0">&#91;</span>length<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span></code> <em>(number)</em>: The padding length.</li>
<li><code><span class="br0">&#91;</span>chars<span class="sy0">=</span><span class="st0">' '</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string used as padding.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the padded string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">padEnd</span><span class="br0">&#40;</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="nu0">6</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'abc &nbsp; '</span><br><br>_.<span class="me1">padEnd</span><span class="br0">&#40;</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="nu0">6</span><span class="sy0">,</span> <span class="st0">'_-'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'abc_-_'</span><br><br>_.<span class="me1">padEnd</span><span class="br0">&#40;</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'abc'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="padStart"></a><code>_.<span class="me1">padStart</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>length<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>chars<span class="sy0">=</span><span class="st0">' '</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#padStart">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12497" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.padstart" title="See the npm package">&#x24C3;</a></p>
<p>Pads <code>string</code> on the left side if it’s shorter than <code>length</code>. Padding
characters are truncated if they exceed <code>length</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to pad.</li>
<li><code><span class="br0">&#91;</span>length<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span></code> <em>(number)</em>: The padding length.</li>
<li><code><span class="br0">&#91;</span>chars<span class="sy0">=</span><span class="st0">' '</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string used as padding.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the padded string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">padStart</span><span class="br0">&#40;</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="nu0">6</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ' &nbsp; abc'</span><br><br>_.<span class="me1">padStart</span><span class="br0">&#40;</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="nu0">6</span><span class="sy0">,</span> <span class="st0">'_-'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → '_-_abc'</span><br><br>_.<span class="me1">padStart</span><span class="br0">&#40;</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'abc'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="parseInt"></a><code>_.<span class="me1">parseInt</span><span class="br0">&#40;</span>string<span class="sy0">,</span> <span class="br0">&#91;</span>radix<span class="sy0">=</span><span class="nu0">10</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#parseInt">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12525" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.parseint" title="See the npm package">&#x24C3;</a></p>
<p>Converts <code>string</code> to an integer of the specified radix. If <code>radix</code> is
<code>undefined</code> or <code>0</code>, a <code>radix</code> of <code><span class="nu0">10</span></code> is used unless <code>value</code> is a hexadecimal,
in which case a <code>radix</code> of <code><span class="nu0">16</span></code> is used.
<br>
<br>
<strong>Note:</strong> This method aligns with the <a href="https://es5.github.io/#x15.1.2.2">ES5 implementation</a>
of <code>parseInt</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>string</code> <em>(string)</em>: The string to convert.</li>
<li><code><span class="br0">&#91;</span>radix<span class="sy0">=</span><span class="nu0">10</span><span class="br0">&#93;</span></code> <em>(number)</em>: The radix to interpret <code>value</code> by.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the converted integer.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">parseInt</span><span class="br0">&#40;</span><span class="st0">'08'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 8</span><br><br>_.<span class="me1">map</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="st0">'6'</span><span class="sy0">,</span> <span class="st0">'08'</span><span class="sy0">,</span> <span class="st0">'10'</span><span class="br0">&#93;</span><span class="sy0">,</span> _.<span class="me1">parseInt</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [6, 8, 10]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="repeat"></a><code>_.<span class="me1">repeat</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>n<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#repeat">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12557" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.repeat" title="See the npm package">&#x24C3;</a></p>
<p>Repeats the given string <code>n</code> times.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to repeat.</li>
<li><code><span class="br0">&#91;</span>n<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span></code> <em>(number)</em>: The number of times to repeat the string.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the repeated string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">repeat</span><span class="br0">&#40;</span><span class="st0">'*'</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → '***'</span><br><br>_.<span class="me1">repeat</span><span class="br0">&#40;</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'abcabc'</span><br><br>_.<span class="me1">repeat</span><span class="br0">&#40;</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="nu0">0</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ''</span></code></pre>
<hr />
</div>
<div>
<h3><a id="replace"></a><code>_.<span class="me1">replace</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="sy0">,</span> pattern<span class="sy0">,</span> replacement<span class="br0">&#41;</span></code></h3>
<p><a href="#replace">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12595" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.replace" title="See the npm package">&#x24C3;</a></p>
<p>Replaces matches for <code>pattern</code> in <code>string</code> with <code>replacement</code>.
<br>
<br>
<strong>Note:</strong> This method is based on <a href="https://mdn.io/String/replace"><code>String#<span class=me1>replace</span></code></a>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to modify.</li>
<li><code>pattern</code> <em>(RegExp|string)</em>: The pattern to replace.</li>
<li><code>replacement</code> <em>(Function|string)</em>: The match replacement.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the modified string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">replace</span><span class="br0">&#40;</span><span class="st0">'Hi Fred'</span><span class="sy0">,</span> <span class="st0">'Fred'</span><span class="sy0">,</span> <span class="st0">'Barney'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'Hi Barney'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="snakeCase"></a><code>_.<span class="me1">snakeCase</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#snakeCase">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12621" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.snakecase" title="See the npm package">&#x24C3;</a></p>
<p>Converts <code>string</code> to <a href="https://en.wikipedia.org/wiki/Snake_case">snake case</a>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to convert.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the snake cased string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">snakeCase</span><span class="br0">&#40;</span><span class="st0">'Foo Bar'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'foo_bar'</span><br><br>_.<span class="me1">snakeCase</span><span class="br0">&#40;</span><span class="st0">'fooBar'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'foo_bar'</span><br><br>_.<span class="me1">snakeCase</span><span class="br0">&#40;</span><span class="st0">'--foo-bar'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'foo_bar'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="split"></a><code>_.<span class="me1">split</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="sy0">,</span> separator<span class="sy0">,</span> <span class="br0">&#91;</span>limit<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#split">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12642" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.split" title="See the npm package">&#x24C3;</a></p>
<p>Splits <code>string</code> by <code>separator</code>.
<br>
<br>
<strong>Note:</strong> This method is based on <a href="https://mdn.io/String/split"><code>String#<span class=me1>split</span></code></a>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to split.</li>
<li><code>separator</code> <em>(RegExp|string)</em>: The separator pattern to split by.</li>
<li><code><span class="br0">&#91;</span>limit<span class="br0">&#93;</span></code> <em>(number)</em>: The length to truncate results to.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of string segments.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">split</span><span class="br0">&#40;</span><span class="st0">'a-b-c'</span><span class="sy0">,</span> <span class="st0">'-'</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ['a', 'b']</span></code></pre>
<hr />
</div>
<div>
<h3><a id="startCase"></a><code>_.<span class="me1">startCase</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#startCase">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12665" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.startcase" title="See the npm package">&#x24C3;</a></p>
<p>Converts <code>string</code> to <a href="https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage">start case</a>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to convert.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the start cased string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">startCase</span><span class="br0">&#40;</span><span class="st0">'--foo-bar'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'Foo Bar'</span><br><br>_.<span class="me1">startCase</span><span class="br0">&#40;</span><span class="st0">'fooBar'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'Foo Bar'</span><br><br>_.<span class="me1">startCase</span><span class="br0">&#40;</span><span class="st0">'__foo_bar__'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'Foo Bar'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="startsWith"></a><code>_.<span class="me1">startsWith</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>target<span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>position<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#startsWith">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12690" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.startswith" title="See the npm package">&#x24C3;</a></p>
<p>Checks if <code>string</code> starts with the given target string.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to search.</li>
<li><code><span class="br0">&#91;</span>target<span class="br0">&#93;</span></code> <em>(string)</em>: The string to search for.</li>
<li><code><span class="br0">&#91;</span>position<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span></code> <em>(number)</em>: The position to search from.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>string</code> starts with <code>target</code>, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">startsWith</span><span class="br0">&#40;</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="st0">'a'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">startsWith</span><span class="br0">&#40;</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">startsWith</span><span class="br0">&#40;</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr />
</div>
<div>
<h3><a id="template"></a><code>_.<span class="me1">template</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>options<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#template">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12792" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.template" title="See the npm package">&#x24C3;</a></p>
<p>Creates a compiled template function that can interpolate data properties
in "interpolate" delimiters, HTML-escape interpolated data properties in
"escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
properties may be accessed as free variables in the template. If a setting
object is given it takes precedence over <a href="#templateSettings"><code>_.<span class="me1">templateSettings</span></code></a> values.
<br>
<br>
<strong>Note:</strong> In the development build <a href="#template"><code>_.<span class="me1">template</span></code></a> utilizes
<a href="http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl">sourceURLs</a>
for easier debugging.
<br>
<br>
For more information on precompiling templates see
<a href="custom-builds">lodash’s custom builds documentation</a>.
<br>
<br>
For more information on Chrome extension sandboxes see
<a href="https://developer.chrome.com/extensions/sandboxingEval">Chrome’s extensions documentation</a>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The template string.</li>
<li><code><span class="br0">&#91;</span>options<span class="br0">&#93;</span></code> <em>(Object)</em>: The options object.</li>
<li><code><span class="br0">&#91;</span>options.<span class="me1">escape</span><span class="br0">&#93;</span></code> <em>(RegExp)</em>: The HTML "escape" delimiter.</li>
<li><code><span class="br0">&#91;</span>options.<span class="me1">evaluate</span><span class="br0">&#93;</span></code> <em>(RegExp)</em>: The "evaluate" delimiter.</li>
<li><code><span class="br0">&#91;</span>options.<span class="me1">imports</span><span class="br0">&#93;</span></code> <em>(Object)</em>: An object to import into the template as free variables.</li>
<li><code><span class="br0">&#91;</span>options.<span class="me1">interpolate</span><span class="br0">&#93;</span></code> <em>(RegExp)</em>: The "interpolate" delimiter.</li>
<li><code><span class="br0">&#91;</span>options.<span class="me1">sourceURL</span><span class="br0">&#93;</span></code> <em>(string)</em>: The sourceURL of the template’s compiled source.</li>
<li><code><span class="br0">&#91;</span>options.<span class="me1">variable</span><span class="br0">&#93;</span></code> <em>(string)</em>: The data object variable name.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the compiled template function.</p>
<h4>Example</h4>
<pre><code><span class="co1">// Use the &quot;interpolate&quot; delimiter to create a compiled template.</span><br><span class="kw2">var</span> compiled <span class="sy0">=</span> _.<span class="me1">template</span><span class="br0">&#40;</span><span class="st0">'hello &lt;%= user %&gt;!'</span><span class="br0">&#41;</span><span class="sy0">;</span><br>compiled<span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'hello fred!'</span><br><br><span class="co1">// Use the HTML &quot;escape&quot; delimiter to escape data property values.</span><br><span class="kw2">var</span> compiled <span class="sy0">=</span> _.<span class="me1">template</span><span class="br0">&#40;</span><span class="st0">'&lt;b&gt;&lt;%- value %&gt;&lt;/b&gt;'</span><span class="br0">&#41;</span><span class="sy0">;</span><br>compiled<span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'value'</span><span class="sy0">:</span> <span class="st0">'&lt;script&gt;'</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → '&lt;b&gt;&amp;lt;script&amp;gt;&lt;/b&gt;'</span><br><br><span class="co1">// Use the &quot;evaluate&quot; delimiter to execute JavaScript and generate HTML.</span><br><span class="kw2">var</span> compiled <span class="sy0">=</span> _.<span class="me1">template</span><span class="br0">&#40;</span><span class="st0">'&lt;% _.forEach(users, function(user) { %&gt;&lt;li&gt;&lt;%- user %&gt;&lt;/li&gt;&lt;% }); %&gt;'</span><span class="br0">&#41;</span><span class="sy0">;</span><br>compiled<span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'users'</span><span class="sy0">:</span> <span class="br0">&#91;</span><span class="st0">'fred'</span><span class="sy0">,</span> <span class="st0">'barney'</span><span class="br0">&#93;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → '&lt;li&gt;fred&lt;/li&gt;&lt;li&gt;barney&lt;/li&gt;'</span><br><br><span class="co1">// Use the internal `print` function in &quot;evaluate&quot; delimiters.</span><br><span class="kw2">var</span> compiled <span class="sy0">=</span> _.<span class="me1">template</span><span class="br0">&#40;</span><span class="st0">'&lt;% print(&quot;hello &quot; + user); %&gt;!'</span><span class="br0">&#41;</span><span class="sy0">;</span><br>compiled<span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'hello barney!'</span><br><br><span class="co1">// Use the ES delimiter as an alternative to the default &quot;interpolate&quot; delimiter.</span><br><span class="kw2">var</span> compiled <span class="sy0">=</span> _.<span class="me1">template</span><span class="br0">&#40;</span><span class="st0">'hello ${ user }!'</span><span class="br0">&#41;</span><span class="sy0">;</span><br>compiled<span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'hello pebbles!'</span><br><br><span class="co1">// Use custom template delimiters.</span><br>_.<span class="me1">templateSettings</span>.<span class="me1">interpolate</span> <span class="sy0">=</span> <span class="co2">/{{([\s\S]+?)}}/g</span><span class="sy0">;</span><br><span class="kw2">var</span> compiled <span class="sy0">=</span> _.<span class="me1">template</span><span class="br0">&#40;</span><span class="st0">'hello {{ user }}!'</span><span class="br0">&#41;</span><span class="sy0">;</span><br>compiled<span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'mustache'</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'hello mustache!'</span><br><br><span class="co1">// Use backslashes to treat delimiters as plain text.</span><br><span class="kw2">var</span> compiled <span class="sy0">=</span> _.<span class="me1">template</span><span class="br0">&#40;</span><span class="st0">'&lt;%= &quot;<span class="es0">\\</span>&lt;%- value %<span class="es0">\\</span>&gt;&quot; %&gt;'</span><span class="br0">&#41;</span><span class="sy0">;</span><br>compiled<span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'value'</span><span class="sy0">:</span> <span class="st0">'ignored'</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → '&lt;%- value %&gt;'</span><br><br><span class="co1">// Use the `imports` option to import `jQuery` as `jq`.</span><br><span class="kw2">var</span> text <span class="sy0">=</span> <span class="st0">'&lt;% jq.each(users, function(user) { %&gt;&lt;li&gt;&lt;%- user %&gt;&lt;/li&gt;&lt;% }); %&gt;'</span><span class="sy0">;</span><br><span class="kw2">var</span> compiled <span class="sy0">=</span> _.<span class="me1">template</span><span class="br0">&#40;</span>text<span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'imports'</span><span class="sy0">:</span> <span class="br0">&#123;</span> <span class="st0">'jq'</span><span class="sy0">:</span> jQuery <span class="br0">&#125;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br>compiled<span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'users'</span><span class="sy0">:</span> <span class="br0">&#91;</span><span class="st0">'fred'</span><span class="sy0">,</span> <span class="st0">'barney'</span><span class="br0">&#93;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → '&lt;li&gt;fred&lt;/li&gt;&lt;li&gt;barney&lt;/li&gt;'</span><br><br><span class="co1">// Use the `sourceURL` option to specify a custom sourceURL for the template.</span><br><span class="kw2">var</span> compiled <span class="sy0">=</span> _.<span class="me1">template</span><span class="br0">&#40;</span><span class="st0">'hello &lt;%= user %&gt;!'</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'sourceURL'</span><span class="sy0">:</span> <span class="st0">'/basic/greeting.jst'</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br>compiled<span class="br0">&#40;</span>data<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → find the source of &quot;greeting.jst&quot; under the Sources tab or Resources panel of the web inspector</span><br><br><span class="co1">// Use the `variable` option to ensure a with-statement isn’t used in the compiled template.</span><br><span class="kw2">var</span> compiled <span class="sy0">=</span> _.<span class="me1">template</span><span class="br0">&#40;</span><span class="st0">'hi &lt;%= data.user %&gt;!'</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'variable'</span><span class="sy0">:</span> <span class="st0">'data'</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br>compiled.<span class="me1">source</span><span class="sy0">;</span><br><span class="co1">// → function(data) {</span><br><span class="co1">// &nbsp; var __t, __p = '';</span><br><span class="co1">// &nbsp; __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';</span><br><span class="co1">// &nbsp; return __p;</span><br><span class="co1">// }</span><br><br><span class="co1">// Use the `source` property to inline compiled templates for meaningful</span><br><span class="co1">// line numbers in error messages and stack traces.</span><br>fs.<span class="me1">writeFileSync</span><span class="br0">&#40;</span>path.<span class="me1">join</span><span class="br0">&#40;</span>cwd<span class="sy0">,</span> <span class="st0">'jst.js'</span><span class="br0">&#41;</span><span class="sy0">,</span> <span class="st0">'<span class="es0">\</span><br>&nbsp; var JST = {<span class="es0">\</span><br>&nbsp; &nbsp; &quot;main&quot;: '</span> <span class="sy0">+</span> _.<span class="me1">template</span><span class="br0">&#40;</span>mainText<span class="br0">&#41;</span>.<span class="me1">source</span> <span class="sy0">+</span> <span class="st0">'<span class="es0">\</span><br>&nbsp; };<span class="es0">\</span><br>'</span><span class="br0">&#41;</span><span class="sy0">;</span></code></pre>
<hr />
</div>
<div>
<h3><a id="toLower"></a><code>_.<span class="me1">toLower</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#toLower">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12918" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.tolower" title="See the npm package">&#x24C3;</a></p>
<p>Converts <code>string</code>, as a whole, to lower case.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to convert.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the lower cased string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">toLower</span><span class="br0">&#40;</span><span class="st0">'--Foo-Bar'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → '--foo-bar'</span><br><br>_.<span class="me1">toLower</span><span class="br0">&#40;</span><span class="st0">'fooBar'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'foobar'</span><br><br>_.<span class="me1">toLower</span><span class="br0">&#40;</span><span class="st0">'__FOO_BAR__'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → '__foo_bar__'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="toUpper"></a><code>_.<span class="me1">toUpper</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#toUpper">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12941" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.toupper" title="See the npm package">&#x24C3;</a></p>
<p>Converts <code>string</code>, as a whole, to upper case.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to convert.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the upper cased string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">toUpper</span><span class="br0">&#40;</span><span class="st0">'--foo-bar'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → '--FOO-BAR'</span><br><br>_.<span class="me1">toUpper</span><span class="br0">&#40;</span><span class="st0">'fooBar'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'FOOBAR'</span><br><br>_.<span class="me1">toUpper</span><span class="br0">&#40;</span><span class="st0">'__foo_bar__'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → '__FOO_BAR__'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="trim"></a><code>_.<span class="me1">trim</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>chars<span class="sy0">=</span>whitespace<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#trim">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12966" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.trim" title="See the npm package">&#x24C3;</a></p>
<p>Removes leading and trailing whitespace or specified characters from <code>string</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to trim.</li>
<li><code><span class="br0">&#91;</span>chars<span class="sy0">=</span>whitespace<span class="br0">&#93;</span></code> <em>(string)</em>: The characters to trim.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the trimmed string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">trim</span><span class="br0">&#40;</span><span class="st0">' &nbsp;abc &nbsp;'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'abc'</span><br><br>_.<span class="me1">trim</span><span class="br0">&#40;</span><span class="st0">'-_-abc-_-'</span><span class="sy0">,</span> <span class="st0">'_-'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'abc'</span><br><br>_.<span class="me1">map</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="st0">' &nbsp;foo &nbsp;'</span><span class="sy0">,</span> <span class="st0">' &nbsp;bar &nbsp;'</span><span class="br0">&#93;</span><span class="sy0">,</span> _.<span class="me1">trim</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ['foo', 'bar']</span></code></pre>
<hr />
</div>
<div>
<h3><a id="trimEnd"></a><code>_.<span class="me1">trimEnd</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>chars<span class="sy0">=</span>whitespace<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#trimEnd">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13004" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.trimend" title="See the npm package">&#x24C3;</a></p>
<p>Removes trailing whitespace or specified characters from <code>string</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to trim.</li>
<li><code><span class="br0">&#91;</span>chars<span class="sy0">=</span>whitespace<span class="br0">&#93;</span></code> <em>(string)</em>: The characters to trim.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the trimmed string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">trimEnd</span><span class="br0">&#40;</span><span class="st0">' &nbsp;abc &nbsp;'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ' &nbsp;abc'</span><br><br>_.<span class="me1">trimEnd</span><span class="br0">&#40;</span><span class="st0">'-_-abc-_-'</span><span class="sy0">,</span> <span class="st0">'_-'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → '-_-abc'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="trimStart"></a><code>_.<span class="me1">trimStart</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>chars<span class="sy0">=</span>whitespace<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#trimStart">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13040" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.trimstart" title="See the npm package">&#x24C3;</a></p>
<p>Removes leading whitespace or specified characters from <code>string</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to trim.</li>
<li><code><span class="br0">&#91;</span>chars<span class="sy0">=</span>whitespace<span class="br0">&#93;</span></code> <em>(string)</em>: The characters to trim.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the trimmed string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">trimStart</span><span class="br0">&#40;</span><span class="st0">' &nbsp;abc &nbsp;'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'abc &nbsp;'</span><br><br>_.<span class="me1">trimStart</span><span class="br0">&#40;</span><span class="st0">'-_-abc-_-'</span><span class="sy0">,</span> <span class="st0">'_-'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'abc-_-'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="truncate"></a><code>_.<span class="me1">truncate</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>options<span class="sy0">=</span><span class="br0">&#40;</span><span class="br0">&#123;</span><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>options.<span class="me1">length</span><span class="sy0">=</span><span class="nu0">30</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>options.<span class="me1">omission</span><span class="sy0">=</span><span class="st0">'…'</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>options.<span class="me1">separator</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#truncate">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13094" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.truncate" title="See the npm package">&#x24C3;</a></p>
<p>Truncates <code>string</code> if it’s longer than the given maximum string length.
The last characters of the truncated string are replaced with the omission
string which defaults to "…".</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to truncate.</li>
<li><code><span class="br0">&#91;</span>options<span class="sy0">=</span><span class="br0">&#40;</span><span class="br0">&#123;</span><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="br0">&#93;</span></code> <em>(Object)</em>: The options object.</li>
<li><code><span class="br0">&#91;</span>options.<span class="me1">length</span><span class="sy0">=</span><span class="nu0">30</span><span class="br0">&#93;</span></code> <em>(number)</em>: The maximum string length.</li>
<li><code><span class="br0">&#91;</span>options.<span class="me1">omission</span><span class="sy0">=</span><span class="st0">'…'</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to indicate text is omitted.</li>
<li><code><span class="br0">&#91;</span>options.<span class="me1">separator</span><span class="br0">&#93;</span></code> <em>(RegExp|string)</em>: The separator pattern to truncate to.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the truncated string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">truncate</span><span class="br0">&#40;</span><span class="st0">'hi-diddly-ho there, neighborino'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'hi-diddly-ho there, neighbo…'</span><br><br>_.<span class="me1">truncate</span><span class="br0">&#40;</span><span class="st0">'hi-diddly-ho there, neighborino'</span><span class="sy0">,</span> <span class="br0">&#123;</span><br>&nbsp; <span class="st0">'length'</span><span class="sy0">:</span> <span class="nu0">24</span><span class="sy0">,</span><br>&nbsp; <span class="st0">'separator'</span><span class="sy0">:</span> <span class="st0">' '</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'hi-diddly-ho there,…'</span><br><br>_.<span class="me1">truncate</span><span class="br0">&#40;</span><span class="st0">'hi-diddly-ho there, neighborino'</span><span class="sy0">,</span> <span class="br0">&#123;</span><br>&nbsp; <span class="st0">'length'</span><span class="sy0">:</span> <span class="nu0">24</span><span class="sy0">,</span><br>&nbsp; <span class="st0">'separator'</span><span class="sy0">:</span> <span class="co2">/,? +/</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'hi-diddly-ho there…'</span><br><br>_.<span class="me1">truncate</span><span class="br0">&#40;</span><span class="st0">'hi-diddly-ho there, neighborino'</span><span class="sy0">,</span> <span class="br0">&#123;</span><br>&nbsp; <span class="st0">'omission'</span><span class="sy0">:</span> <span class="st0">' […]'</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'hi-diddly-ho there, neig […]'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="unescape"></a><code>_.<span class="me1">unescape</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#unescape">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13168" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.unescape" title="See the npm package">&#x24C3;</a></p>
<p>The inverse of <a href="#escape"><code>_.<span class="me1">escape</span></code></a>; this method converts the HTML entities
<code><span class="sy0">&amp;</span>amp<span class="sy0">;</span></code>, <code><span class="sy0">&amp;</span>lt<span class="sy0">;</span></code>, <code><span class="sy0">&amp;</span>gt<span class="sy0">;</span></code>, <code><span class="sy0">&amp;</span>quot<span class="sy0">;</span></code>, <code><span class="sy0">&amp;</span>#<span class="nu0">39</span><span class="sy0">;</span></code>, and <code><span class="sy0">&amp;</span>#<span class="nu0">96</span><span class="sy0">;</span></code> in <code>string</code> to their
corresponding characters.
<br>
<br>
<strong>Note:</strong> No other HTML entities are unescaped. To unescape additional HTML
entities use a third-party library like <a href="https://mths.be/he"><em>he</em></a>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to unescape.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the unescaped string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">unescape</span><span class="br0">&#40;</span><span class="st0">'fred, barney, &amp;amp; pebbles'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'fred, barney, &amp; pebbles'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="upperCase"></a><code>_.<span class="me1">upperCase</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#upperCase">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13194" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.uppercase" title="See the npm package">&#x24C3;</a></p>
<p>Converts <code>string</code>, as space separated words, to upper case.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to convert.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the upper cased string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">upperCase</span><span class="br0">&#40;</span><span class="st0">'--foo-bar'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'FOO BAR'</span><br><br>_.<span class="me1">upperCase</span><span class="br0">&#40;</span><span class="st0">'fooBar'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'FOO BAR'</span><br><br>_.<span class="me1">upperCase</span><span class="br0">&#40;</span><span class="st0">'__foo_bar__'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'FOO BAR'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="upperFirst"></a><code>_.<span class="me1">upperFirst</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#upperFirst">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L12409" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.upperfirst" title="See the npm package">&#x24C3;</a></p>
<p>Converts the first character of <code>string</code> to upper case.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to convert.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the converted string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">upperFirst</span><span class="br0">&#40;</span><span class="st0">'fred'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'Fred'</span><br><br>_.<span class="me1">upperFirst</span><span class="br0">&#40;</span><span class="st0">'FRED'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'FRED'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="words"></a><code>_.<span class="me1">words</span><span class="br0">&#40;</span><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span>pattern<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#words">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13216" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.words" title="See the npm package">&#x24C3;</a></p>
<p>Splits <code>string</code> into an array of its words.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The string to inspect.</li>
<li><code><span class="br0">&#91;</span>pattern<span class="br0">&#93;</span></code> <em>(RegExp|string)</em>: The pattern to match words.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the words of <code>string</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">words</span><span class="br0">&#40;</span><span class="st0">'fred, barney, &amp; pebbles'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ['fred', 'barney', 'pebbles']</span><br><br>_.<span class="me1">words</span><span class="br0">&#40;</span><span class="st0">'fred, barney, &amp; pebbles'</span><span class="sy0">,</span> <span class="co2">/[^, ]+/g</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ['fred', 'barney', '&amp;', 'pebbles']</span></code></pre>
<hr />
</div>
</div>
<div>
<h2><code>“Util” Methods</code></h2>
<div>
<h3><a id="attempt"></a><code>_.<span class="me1">attempt</span><span class="br0">&#40;</span>func<span class="br0">&#41;</span></code></h3>
<p><a href="#attempt">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13248" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.attempt" title="See the npm package">&#x24C3;</a></p>
<p>Attempts to invoke <code>func</code>, returning either the result or the caught error
object. Any additional arguments are provided to <code>func</code> when it’s invoked.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to attempt.</li>
</ol>
<h4>Returns</h4>
<p><em>(&#42;)</em>:  Returns the <code>func</code> result or error object.</p>
<h4>Example</h4>
<pre><code><span class="co1">// Avoid throwing errors for invalid selectors.</span><br><span class="kw2">var</span> elements <span class="sy0">=</span> _.<span class="me1">attempt</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span>selector<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> document.<span class="me1">querySelectorAll</span><span class="br0">&#40;</span>selector<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="sy0">,</span> <span class="st0">'&gt;_&gt;'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br><span class="kw1">if</span> <span class="br0">&#40;</span>_.<span class="me1">isError</span><span class="br0">&#40;</span>elements<span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; elements <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#93;</span><span class="sy0">;</span><br><span class="br0">&#125;</span></code></pre>
<hr />
</div>
<div>
<h3><a id="bindAll"></a><code>_.<span class="me1">bindAll</span><span class="br0">&#40;</span>object<span class="sy0">,</span> methodNames<span class="br0">&#41;</span></code></h3>
<p><a href="#bindAll">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13282" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.bindall" title="See the npm package">&#x24C3;</a></p>
<p>Binds methods of an object to the object itself, overwriting the existing
method.
<br>
<br>
<strong>Note:</strong> This method doesn’t set the "length" property of bound functions.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to bind and assign the bound methods to.</li>
<li><code>methodNames</code> <em>(…(string|string&#91;&#93;)</em>: The object method names to bind, specified individually or in arrays.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns <code>object</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> view <span class="sy0">=</span> <span class="br0">&#123;</span><br>&nbsp; <span class="st0">'label'</span><span class="sy0">:</span> <span class="st0">'docs'</span><span class="sy0">,</span><br>&nbsp; <span class="st0">'onClick'</span><span class="sy0">:</span> <span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; &nbsp; console.<span class="me1">log</span><span class="br0">&#40;</span><span class="st0">'clicked '</span> <span class="sy0">+</span> <span class="kw1">this</span>.<span class="me1">label</span><span class="br0">&#41;</span><span class="sy0">;</span><br>&nbsp; <span class="br0">&#125;</span><br><span class="br0">&#125;</span><span class="sy0">;</span><br><br>_.<span class="me1">bindAll</span><span class="br0">&#40;</span>view<span class="sy0">,</span> <span class="st0">'onClick'</span><span class="br0">&#41;</span><span class="sy0">;</span><br>jQuery<span class="br0">&#40;</span>element<span class="br0">&#41;</span>.<span class="me1">on</span><span class="br0">&#40;</span><span class="st0">'click'</span><span class="sy0">,</span> view.<span class="me1">onClick</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → logs 'clicked docs' when clicked</span></code></pre>
<hr />
</div>
<div>
<h3><a id="cond"></a><code>_.<span class="me1">cond</span><span class="br0">&#40;</span>pairs<span class="br0">&#41;</span></code></h3>
<p><a href="#cond">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13317" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.cond" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that iterates over <code>pairs</code> invoking the corresponding
function of the first predicate to return truthy. The predicate-function
pairs are invoked with the <code><span class="kw1">this</span></code> binding and arguments of the created
function.</p>
<h4>Arguments</h4>
<ol>
<li><code>pairs</code> <em>(Array)</em>: The predicate-function pairs.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> func <span class="sy0">=</span> _.<span class="me1">cond</span><span class="br0">&#40;</span><span class="br0">&#91;</span><br>&nbsp; <span class="br0">&#91;</span>_.<span class="me1">matches</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">,</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _.<span class="me1">constant</span><span class="br0">&#40;</span><span class="st0">'matches A'</span><span class="br0">&#41;</span><span class="br0">&#93;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#91;</span>_.<span class="me1">conforms</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'b'</span><span class="sy0">:</span> _.<span class="me1">isNumber</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">,</span> _.<span class="me1">constant</span><span class="br0">&#40;</span><span class="st0">'matches B'</span><span class="br0">&#41;</span><span class="br0">&#93;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#91;</span>_.<span class="me1">constant</span><span class="br0">&#40;</span><span class="kw2">true</span><span class="br0">&#41;</span><span class="sy0">,</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_.<span class="me1">constant</span><span class="br0">&#40;</span><span class="st0">'no match'</span><span class="br0">&#41;</span><span class="br0">&#93;</span><br><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br>func<span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'matches A'</span><br><br>func<span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">0</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'matches B'</span><br><br>func<span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="st0">'1'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="st0">'2'</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'no match'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="conforms"></a><code>_.<span class="me1">conforms</span><span class="br0">&#40;</span>source<span class="br0">&#41;</span></code></h3>
<p><a href="#conforms">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13359" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.conforms" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that invokes the predicate properties of <code>source</code> with
the corresponding property values of a given object, returning <code><span class="kw2">true</span></code> if
all predicates return truthy, else <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>source</code> <em>(Object)</em>: The object of property predicates to conform to.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">&#91;</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span> <span class="br0">&#125;</span><br><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">filter</span><span class="br0">&#40;</span>users<span class="sy0">,</span> _.<span class="me1">conforms</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'age'</span><span class="sy0">:</span> _.<span class="me1">partial</span><span class="br0">&#40;</span>_.<span class="me1">gt</span><span class="sy0">,</span> _<span class="sy0">,</span> <span class="nu0">38</span><span class="br0">&#41;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [{ 'user': 'fred', 'age': 40 }]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="constant"></a><code>_.<span class="me1">constant</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#constant">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13379" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.constant" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that returns <code>value</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to return from the new function.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><span class="kw2">var</span> getter <span class="sy0">=</span> _.<span class="me1">constant</span><span class="br0">&#40;</span>object<span class="br0">&#41;</span><span class="sy0">;</span><br><br>getter<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="sy0">===</span> object<span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr />
</div>
<div>
<h3><a id="flow"></a><code>_.<span class="me1">flow</span><span class="br0">&#40;</span><span class="br0">&#91;</span>funcs<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#flow">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13405" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.flow" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that returns the result of invoking the given functions
with the <code><span class="kw1">this</span></code> binding of the created function, where each successive
invocation is supplied the return value of the previous.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>funcs<span class="br0">&#93;</span></code> <em>(…(Function|Function&#91;&#93;)</em>: Functions to invoke.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> square<span class="br0">&#40;</span>n<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">*</span> n<span class="sy0">;</span><br><span class="br0">&#125;</span><br><br><span class="kw2">var</span> addSquare <span class="sy0">=</span> _.<span class="me1">flow</span><span class="br0">&#40;</span>_.<span class="me1">add</span><span class="sy0">,</span> square<span class="br0">&#41;</span><span class="sy0">;</span><br>addSquare<span class="br0">&#40;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 9</span></code></pre>
<hr />
</div>
<div>
<h3><a id="flowRight"></a><code>_.<span class="me1">flowRight</span><span class="br0">&#40;</span><span class="br0">&#91;</span>funcs<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#flowRight">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13426" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.flowright" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#flow"><code>_.<span class="me1">flow</span></code></a> except that it creates a function that
invokes the given functions from right to left.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>funcs<span class="br0">&#93;</span></code> <em>(…(Function|Function&#91;&#93;)</em>: Functions to invoke.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> square<span class="br0">&#40;</span>n<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">*</span> n<span class="sy0">;</span><br><span class="br0">&#125;</span><br><br><span class="kw2">var</span> addSquare <span class="sy0">=</span> _.<span class="me1">flowRight</span><span class="br0">&#40;</span>square<span class="sy0">,</span> _.<span class="me1">add</span><span class="br0">&#41;</span><span class="sy0">;</span><br>addSquare<span class="br0">&#40;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 9</span></code></pre>
<hr />
</div>
<div>
<h3><a id="identity"></a><code>_.<span class="me1">identity</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#identity">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13443" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.identity" title="See the npm package">&#x24C3;</a></p>
<p>This method returns the first argument given to it.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: Any value.</li>
</ol>
<h4>Returns</h4>
<p><em>(&#42;)</em>:  Returns <code>value</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><br>_.<span class="me1">identity</span><span class="br0">&#40;</span>object<span class="br0">&#41;</span> <span class="sy0">===</span> object<span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr />
</div>
<div>
<h3><a id="iteratee"></a><code>_.<span class="me1">iteratee</span><span class="br0">&#40;</span><span class="br0">&#91;</span>func<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#iteratee">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13477" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.iteratee" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that invokes <code>func</code> with the arguments of the created
function. If <code>func</code> is a property name the created callback returns the
property value for a given element. If <code>func</code> is an object the created
callback returns <code><span class="kw2">true</span></code> for elements that contain the equivalent object
properties, otherwise it returns <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>func<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(&#42;)</em>: The value to convert to a callback.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the callback.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">&#91;</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span> <span class="br0">&#125;</span><br><span class="br0">&#93;</span><span class="sy0">;</span><br><br><span class="co1">// Create custom iteratee shorthands.</span><br>_.<span class="me1">iteratee</span> <span class="sy0">=</span> _.<span class="me1">wrap</span><span class="br0">&#40;</span>_.<span class="me1">iteratee</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>callback<span class="sy0">,</span> func<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw2">var</span> p <span class="sy0">=</span> <span class="co2">/^(\S+)\s*([&lt;&gt;])\s*(\S+)$/</span>.<span class="me1">exec</span><span class="br0">&#40;</span>func<span class="br0">&#41;</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">return</span> <span class="sy0">!</span>p <span class="sy0">?</span> callback<span class="br0">&#40;</span>func<span class="br0">&#41;</span> <span class="sy0">:</span> <span class="kw2">function</span><span class="br0">&#40;</span>object<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; &nbsp; <span class="kw1">return</span> <span class="br0">&#40;</span>p<span class="br0">&#91;</span><span class="nu0">2</span><span class="br0">&#93;</span> <span class="sy0">==</span> <span class="st0">'&gt;'</span> <span class="sy0">?</span> object<span class="br0">&#91;</span>p<span class="br0">&#91;</span><span class="nu0">1</span><span class="br0">&#93;</span><span class="br0">&#93;</span> <span class="sy0">&gt;</span> p<span class="br0">&#91;</span><span class="nu0">3</span><span class="br0">&#93;</span> <span class="sy0">:</span> object<span class="br0">&#91;</span>p<span class="br0">&#91;</span><span class="nu0">1</span><span class="br0">&#93;</span><span class="br0">&#93;</span> <span class="sy0">&lt;</span> p<span class="br0">&#91;</span><span class="nu0">3</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br>&nbsp; <span class="br0">&#125;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br>_.<span class="me1">filter</span><span class="br0">&#40;</span>users<span class="sy0">,</span> <span class="st0">'age &gt; 36'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [{ 'user': 'fred', 'age': 40 }]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="matches"></a><code>_.<span class="me1">matches</span><span class="br0">&#40;</span>source<span class="br0">&#41;</span></code></h3>
<p><a href="#matches">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13504" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.matches" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that performs a partial deep comparison between a given
object and <code>source</code>, returning <code><span class="kw2">true</span></code> if the given object has equivalent
property values, else <code><span class="kw2">false</span></code>. The created function is equivalent to
<a href="#isMatch"><code>_.<span class="me1">isMatch</span></code></a> with a <code>source</code> partially applied.
<br>
<br>
<strong>Note:</strong> This method supports comparing the same values as <a href="#isEqual"><code>_.<span class="me1">isEqual</span></code></a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>source</code> <em>(Object)</em>: The object of property values to match.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">&#91;</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><br><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">filter</span><span class="br0">&#40;</span>users<span class="sy0">,</span> _.<span class="me1">matches</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [{ 'user': 'fred', 'age': 40, 'active': false }]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="matchesProperty"></a><code>_.<span class="me1">matchesProperty</span><span class="br0">&#40;</span>path<span class="sy0">,</span> srcValue<span class="br0">&#41;</span></code></h3>
<p><a href="#matchesProperty">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13531" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.matchesproperty" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that performs a partial deep comparison between the
value at <code>path</code> of a given object to <code>srcValue</code>, returning <code><span class="kw2">true</span></code> if the
object value is equivalent, else <code><span class="kw2">false</span></code>.
<br>
<br>
<strong>Note:</strong> This method supports comparing the same values as <a href="#isEqual"><code>_.<span class="me1">isEqual</span></code></a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>path</code> <em>(Array|string)</em>: The path of the property to get.</li>
<li><code>srcValue</code> <em>(&#42;)</em>: The value to match.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">&#91;</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">&#125;</span><br><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">find</span><span class="br0">&#40;</span>users<span class="sy0">,</span> _.<span class="me1">matchesProperty</span><span class="br0">&#40;</span><span class="st0">'user'</span><span class="sy0">,</span> <span class="st0">'fred'</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → { 'user': 'fred' }</span></code></pre>
<hr />
</div>
<div>
<h3><a id="method"></a><code>_.<span class="me1">method</span><span class="br0">&#40;</span>path<span class="sy0">,</span> <span class="br0">&#91;</span>args<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#method">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13558" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.method" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that invokes the method at <code>path</code> of a given object.
Any additional arguments are provided to the invoked method.</p>
<h4>Arguments</h4>
<ol>
<li><code>path</code> <em>(Array|string)</em>: The path of the method to invoke.</li>
<li><code><span class="br0">&#91;</span>args<span class="br0">&#93;</span></code> <em>(…&#42;)</em>: The arguments to invoke the method with.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> objects <span class="sy0">=</span> <span class="br0">&#91;</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="br0">&#123;</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="br0">&#123;</span> <span class="st0">'c'</span><span class="sy0">:</span> _.<span class="me1">constant</span><span class="br0">&#40;</span><span class="nu0">2</span><span class="br0">&#41;</span> <span class="br0">&#125;</span> <span class="br0">&#125;</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="br0">&#123;</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="br0">&#123;</span> <span class="st0">'c'</span><span class="sy0">:</span> _.<span class="me1">constant</span><span class="br0">&#40;</span><span class="nu0">1</span><span class="br0">&#41;</span> <span class="br0">&#125;</span> <span class="br0">&#125;</span> <span class="br0">&#125;</span><br><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">map</span><span class="br0">&#40;</span>objects<span class="sy0">,</span> _.<span class="me1">method</span><span class="br0">&#40;</span><span class="st0">'a.b.c'</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [2, 1]</span><br><br>_.<span class="me1">invokeMap</span><span class="br0">&#40;</span>_.<span class="me1">sortBy</span><span class="br0">&#40;</span>objects<span class="sy0">,</span> _.<span class="me1">method</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">,</span> <span class="st0">'a.b.c'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="methodOf"></a><code>_.<span class="me1">methodOf</span><span class="br0">&#40;</span>object<span class="sy0">,</span> <span class="br0">&#91;</span>args<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#methodOf">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13586" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.methodof" title="See the npm package">&#x24C3;</a></p>
<p>The opposite of <a href="#method"><code>_.<span class="me1">method</span></code></a>; this method creates a function that invokes
the method at a given path of <code>object</code>. Any additional arguments are
provided to the invoked method.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to query.</li>
<li><code><span class="br0">&#91;</span>args<span class="br0">&#93;</span></code> <em>(…&#42;)</em>: The arguments to invoke the method with.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> array <span class="sy0">=</span> _.<span class="me1">times</span><span class="br0">&#40;</span><span class="nu0">3</span><span class="sy0">,</span> _.<span class="me1">constant</span><span class="br0">&#41;</span><span class="sy0">,</span><br>&nbsp; &nbsp; object <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> array<span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> array<span class="sy0">,</span> <span class="st0">'c'</span><span class="sy0">:</span> array <span class="br0">&#125;</span><span class="sy0">;</span><br><br>_.<span class="me1">map</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="st0">'a[2]'</span><span class="sy0">,</span> <span class="st0">'c[0]'</span><span class="br0">&#93;</span><span class="sy0">,</span> _.<span class="me1">methodOf</span><span class="br0">&#40;</span>object<span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [2, 0]</span><br><br>_.<span class="me1">map</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="br0">&#91;</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'2'</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'c'</span><span class="sy0">,</span> <span class="st0">'0'</span><span class="br0">&#93;</span><span class="br0">&#93;</span><span class="sy0">,</span> _.<span class="me1">methodOf</span><span class="br0">&#40;</span>object<span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [2, 0]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="mixin"></a><code>_.<span class="me1">mixin</span><span class="br0">&#40;</span><span class="br0">&#91;</span>object<span class="sy0">=</span>lodash<span class="br0">&#93;</span><span class="sy0">,</span> source<span class="sy0">,</span> <span class="br0">&#91;</span>options<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#mixin">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13628" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.mixin" title="See the npm package">&#x24C3;</a></p>
<p>Adds all own enumerable function properties of a source object to the
destination object. If <code>object</code> is a function then methods are added to
its prototype as well.
<br>
<br>
<strong>Note:</strong> Use <a href="#runInContext"><code>_.<span class="me1">runInContext</span></code></a> to create a pristine <code>lodash</code> function to
avoid conflicts caused by modifying the original.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>object<span class="sy0">=</span>lodash<span class="br0">&#93;</span></code> <em>(Function|Object)</em>: The destination object.</li>
<li><code>source</code> <em>(Object)</em>: The object of functions to add.</li>
<li><code><span class="br0">&#91;</span>options<span class="br0">&#93;</span></code> <em>(Object)</em>: The options object.</li>
<li><code><span class="br0">&#91;</span>options.<span class="me1">chain</span><span class="sy0">=</span><span class="kw2">true</span><span class="br0">&#93;</span></code> <em>(boolean)</em>: Specify whether the functions added are chainable.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function|Object)</em>:  Returns <code>object</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> vowels<span class="br0">&#40;</span>string<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; <span class="kw1">return</span> _.<span class="me1">filter</span><span class="br0">&#40;</span>string<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>v<span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; &nbsp; <span class="kw1">return</span> <span class="co2">/[aeiou]/i</span>.<span class="me1">test</span><span class="br0">&#40;</span>v<span class="br0">&#41;</span><span class="sy0">;</span><br>&nbsp; <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="br0">&#125;</span><br><br>_.<span class="me1">mixin</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'vowels'</span><span class="sy0">:</span> vowels <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br>_.<span class="me1">vowels</span><span class="br0">&#40;</span><span class="st0">'fred'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ['e']</span><br><br>_<span class="br0">&#40;</span><span class="st0">'fred'</span><span class="br0">&#41;</span>.<span class="me1">vowels</span><span class="br0">&#40;</span><span class="br0">&#41;</span>.<span class="me1">value</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ['e']</span><br><br>_.<span class="me1">mixin</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'vowels'</span><span class="sy0">:</span> vowels <span class="br0">&#125;</span><span class="sy0">,</span> <span class="br0">&#123;</span> <span class="st0">'chain'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br>_<span class="br0">&#40;</span><span class="st0">'fred'</span><span class="br0">&#41;</span>.<span class="me1">vowels</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ['e']</span></code></pre>
<hr />
</div>
<div>
<h3><a id="noConflict"></a><code>_.<span class="me1">noConflict</span><span class="br0">&#40;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#noConflict">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13676" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.noconflict" title="See the npm package">&#x24C3;</a></p>
<p>Reverts the <code>_</code> variable to its previous value and returns a reference to
the <code>lodash</code> function.</p>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the <code>lodash</code> function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> lodash <span class="sy0">=</span> _.<span class="me1">noConflict</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></code></pre>
<hr />
</div>
<div>
<h3><a id="noop"></a><code>_.<span class="me1">noop</span><span class="br0">&#40;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#noop">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13697" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.noop" title="See the npm package">&#x24C3;</a></p>
<p>A no-operation function that returns <code>undefined</code> regardless of the
arguments it receives.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">&#125;</span><span class="sy0">;</span><br><br>_.<span class="me1">noop</span><span class="br0">&#40;</span>object<span class="br0">&#41;</span> <span class="sy0">===</span> undefined<span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr />
</div>
<div>
<h3><a id="nthArg"></a><code>_.<span class="me1">nthArg</span><span class="br0">&#40;</span><span class="br0">&#91;</span>n<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#nthArg">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13716" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.ntharg" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that returns its nth argument.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>n<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span></code> <em>(number)</em>: The index of the argument to return.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> func <span class="sy0">=</span> _.<span class="me1">nthArg</span><span class="br0">&#40;</span><span class="nu0">1</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br>func<span class="br0">&#40;</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'b'</span></code></pre>
<hr />
</div>
<div>
<h3><a id="over"></a><code>_.<span class="me1">over</span><span class="br0">&#40;</span>iteratees<span class="br0">&#41;</span></code></h3>
<p><a href="#over">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13739" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.over" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that invokes <code>iteratees</code> with the arguments provided
to the created function and returns their results.</p>
<h4>Arguments</h4>
<ol>
<li><code>iteratees</code> <em>(…(Function|Function&#91;&#93;)</em>: The iteratees to invoke.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> func <span class="sy0">=</span> _.<span class="me1">over</span><span class="br0">&#40;</span>Math.<span class="me1">max</span><span class="sy0">,</span> Math.<span class="me1">min</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br>func<span class="br0">&#40;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [4, 1]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="overEvery"></a><code>_.<span class="me1">overEvery</span><span class="br0">&#40;</span>predicates<span class="br0">&#41;</span></code></h3>
<p><a href="#overEvery">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13763" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.overevery" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that checks if <strong>all</strong> of the <code>predicates</code> return
truthy when invoked with the arguments provided to the created function.</p>
<h4>Arguments</h4>
<ol>
<li><code>predicates</code> <em>(…(Function|Function&#91;&#93;)</em>: The predicates to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> func <span class="sy0">=</span> _.<span class="me1">overEvery</span><span class="br0">&#40;</span>Boolean<span class="sy0">,</span> isFinite<span class="br0">&#41;</span><span class="sy0">;</span><br><br>func<span class="br0">&#40;</span><span class="st0">'1'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>func<span class="br0">&#40;</span><span class="kw2">null</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>func<span class="br0">&#40;</span>NaN<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="overSome"></a><code>_.<span class="me1">overSome</span><span class="br0">&#40;</span>predicates<span class="br0">&#41;</span></code></h3>
<p><a href="#overSome">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13787" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.oversome" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that checks if <strong>any</strong> of the <code>predicates</code> return
truthy when invoked with the arguments provided to the created function.</p>
<h4>Arguments</h4>
<ol>
<li><code>predicates</code> <em>(…(Function|Function&#91;&#93;)</em>: The predicates to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> func <span class="sy0">=</span> _.<span class="me1">overSome</span><span class="br0">&#40;</span>Boolean<span class="sy0">,</span> isFinite<span class="br0">&#41;</span><span class="sy0">;</span><br><br>func<span class="br0">&#40;</span><span class="st0">'1'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>func<span class="br0">&#40;</span><span class="kw2">null</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>func<span class="br0">&#40;</span>NaN<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="property"></a><code>_.<span class="me1">property</span><span class="br0">&#40;</span>path<span class="br0">&#41;</span></code></h3>
<p><a href="#property">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13810" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.property" title="See the npm package">&#x24C3;</a></p>
<p>Creates a function that returns the value at <code>path</code> of a given object.</p>
<h4>Arguments</h4>
<ol>
<li><code>path</code> <em>(Array|string)</em>: The path of the property to get.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> objects <span class="sy0">=</span> <span class="br0">&#91;</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="br0">&#123;</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="br0">&#123;</span> <span class="st0">'c'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">&#125;</span> <span class="br0">&#125;</span> <span class="br0">&#125;</span><span class="sy0">,</span><br>&nbsp; <span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="br0">&#123;</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="br0">&#123;</span> <span class="st0">'c'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">&#125;</span> <span class="br0">&#125;</span> <span class="br0">&#125;</span><br><span class="br0">&#93;</span><span class="sy0">;</span><br><br>_.<span class="me1">map</span><span class="br0">&#40;</span>objects<span class="sy0">,</span> _.<span class="me1">property</span><span class="br0">&#40;</span><span class="st0">'a.b.c'</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [2, 1]</span><br><br>_.<span class="me1">map</span><span class="br0">&#40;</span>_.<span class="me1">sortBy</span><span class="br0">&#40;</span>objects<span class="sy0">,</span> _.<span class="me1">property</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">,</span> <span class="st0">'a.b.c'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="propertyOf"></a><code>_.<span class="me1">propertyOf</span><span class="br0">&#40;</span>object<span class="br0">&#41;</span></code></h3>
<p><a href="#propertyOf">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13834" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.propertyof" title="See the npm package">&#x24C3;</a></p>
<p>The opposite of <a href="#property"><code>_.<span class="me1">property</span></code></a>; this method creates a function that returns
the value at a given path of <code>object</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to query.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> array <span class="sy0">=</span> <span class="br0">&#91;</span><span class="nu0">0</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">&#93;</span><span class="sy0">,</span><br>&nbsp; &nbsp; object <span class="sy0">=</span> <span class="br0">&#123;</span> <span class="st0">'a'</span><span class="sy0">:</span> array<span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> array<span class="sy0">,</span> <span class="st0">'c'</span><span class="sy0">:</span> array <span class="br0">&#125;</span><span class="sy0">;</span><br><br>_.<span class="me1">map</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="st0">'a[2]'</span><span class="sy0">,</span> <span class="st0">'c[0]'</span><span class="br0">&#93;</span><span class="sy0">,</span> _.<span class="me1">propertyOf</span><span class="br0">&#40;</span>object<span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [2, 0]</span><br><br>_.<span class="me1">map</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="br0">&#91;</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'2'</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="br0">&#91;</span><span class="st0">'c'</span><span class="sy0">,</span> <span class="st0">'0'</span><span class="br0">&#93;</span><span class="br0">&#93;</span><span class="sy0">,</span> _.<span class="me1">propertyOf</span><span class="br0">&#40;</span>object<span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [2, 0]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="range"></a><code>_.<span class="me1">range</span><span class="br0">&#40;</span><span class="br0">&#91;</span>start<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="sy0">,</span> end<span class="sy0">,</span> <span class="br0">&#91;</span>step<span class="sy0">=</span><span class="nu0">1</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#range">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13879" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.range" title="See the npm package">&#x24C3;</a></p>
<p>Creates an array of numbers (positive and/or negative) progressing from
<code>start</code> up to, but not including, <code>end</code>. A step of <code><span class="sy0">-</span><span class="nu0">1</span></code> is used if a negative
<code>start</code> is specified without an <code>end</code> or <code>step</code>. If <code>end</code> is not specified
it’s set to <code>start</code> with <code>start</code> then set to <code>0</code>.
<br>
<br>
<strong>Note:</strong> JavaScript follows the IEEE-754 standard for resolving
floating-point values which can produce unexpected results.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>start<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span></code> <em>(number)</em>: The start of the range.</li>
<li><code>end</code> <em>(number)</em>: The end of the range.</li>
<li><code><span class="br0">&#91;</span>step<span class="sy0">=</span><span class="nu0">1</span><span class="br0">&#93;</span></code> <em>(number)</em>: The value to increment or decrement by.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of numbers.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">range</span><span class="br0">&#40;</span><span class="nu0">4</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [0, 1, 2, 3]</span><br><br>_.<span class="me1">range</span><span class="br0">&#40;</span><span class="sy0">-</span><span class="nu0">4</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [0, -1, -2, -3]</span><br><br>_.<span class="me1">range</span><span class="br0">&#40;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3, 4]</span><br><br>_.<span class="me1">range</span><span class="br0">&#40;</span><span class="nu0">0</span><span class="sy0">,</span> <span class="nu0">20</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [0, 5, 10, 15]</span><br><br>_.<span class="me1">range</span><span class="br0">&#40;</span><span class="nu0">0</span><span class="sy0">,</span> <span class="sy0">-</span><span class="nu0">4</span><span class="sy0">,</span> <span class="sy0">-</span><span class="nu0">1</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [0, -1, -2, -3]</span><br><br>_.<span class="me1">range</span><span class="br0">&#40;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">0</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 1, 1]</span><br><br>_.<span class="me1">range</span><span class="br0">&#40;</span><span class="nu0">0</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → []</span></code></pre>
<hr />
</div>
<div>
<h3><a id="rangeRight"></a><code>_.<span class="me1">rangeRight</span><span class="br0">&#40;</span><span class="br0">&#91;</span>start<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="sy0">,</span> end<span class="sy0">,</span> <span class="br0">&#91;</span>step<span class="sy0">=</span><span class="nu0">1</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#rangeRight">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13915" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.rangeright" title="See the npm package">&#x24C3;</a></p>
<p>This method is like <a href="#range"><code>_.<span class="me1">range</span></code></a> except that it populates values in
descending order.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>start<span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#93;</span></code> <em>(number)</em>: The start of the range.</li>
<li><code>end</code> <em>(number)</em>: The end of the range.</li>
<li><code><span class="br0">&#91;</span>step<span class="sy0">=</span><span class="nu0">1</span><span class="br0">&#93;</span></code> <em>(number)</em>: The value to increment or decrement by.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of numbers.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">rangeRight</span><span class="br0">&#40;</span><span class="nu0">4</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [3, 2, 1, 0]</span><br><br>_.<span class="me1">rangeRight</span><span class="br0">&#40;</span><span class="sy0">-</span><span class="nu0">4</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [-3, -2, -1, 0]</span><br><br>_.<span class="me1">rangeRight</span><span class="br0">&#40;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [4, 3, 2, 1]</span><br><br>_.<span class="me1">rangeRight</span><span class="br0">&#40;</span><span class="nu0">0</span><span class="sy0">,</span> <span class="nu0">20</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [15, 10, 5, 0]</span><br><br>_.<span class="me1">rangeRight</span><span class="br0">&#40;</span><span class="nu0">0</span><span class="sy0">,</span> <span class="sy0">-</span><span class="nu0">4</span><span class="sy0">,</span> <span class="sy0">-</span><span class="nu0">1</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [-3, -2, -1, 0]</span><br><br>_.<span class="me1">rangeRight</span><span class="br0">&#40;</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">0</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [1, 1, 1]</span><br><br>_.<span class="me1">rangeRight</span><span class="br0">&#40;</span><span class="nu0">0</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → []</span></code></pre>
<hr />
</div>
<div>
<h3><a id="runInContext"></a><code>_.<span class="me1">runInContext</span><span class="br0">&#40;</span><span class="br0">&#91;</span>context<span class="sy0">=</span>root<span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#runInContext">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L1275" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.runincontext" title="See the npm package">&#x24C3;</a></p>
<p>Create a new pristine <code>lodash</code> function using the <code>context</code> object.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>context<span class="sy0">=</span>root<span class="br0">&#93;</span></code> <em>(Object)</em>: The context object.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns a new <code>lodash</code> function.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">mixin</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'foo'</span><span class="sy0">:</span> _.<span class="me1">constant</span><span class="br0">&#40;</span><span class="st0">'foo'</span><span class="br0">&#41;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br><span class="kw2">var</span> lodash <span class="sy0">=</span> _.<span class="me1">runInContext</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br>lodash.<span class="me1">mixin</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'bar'</span><span class="sy0">:</span> lodash.<span class="me1">constant</span><span class="br0">&#40;</span><span class="st0">'bar'</span><span class="br0">&#41;</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br>_.<span class="me1">isFunction</span><span class="br0">&#40;</span>_.<span class="me1">foo</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br>_.<span class="me1">isFunction</span><span class="br0">&#40;</span>_.<span class="me1">bar</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>lodash.<span class="me1">isFunction</span><span class="br0">&#40;</span>lodash.<span class="me1">foo</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span><br>lodash.<span class="me1">isFunction</span><span class="br0">&#40;</span>lodash.<span class="me1">bar</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br><span class="co1">// Use `context` to mock `Date#getTime` use in `_.now`.</span><br><span class="kw2">var</span> mock <span class="sy0">=</span> _.<span class="me1">runInContext</span><span class="br0">&#40;</span><span class="br0">&#123;</span><br>&nbsp; <span class="st0">'Date'</span><span class="sy0">:</span> <span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br>&nbsp; &nbsp; <span class="kw1">return</span> <span class="br0">&#123;</span> <span class="st0">'getTime'</span><span class="sy0">:</span> getTimeMock <span class="br0">&#125;</span><span class="sy0">;</span><br>&nbsp; <span class="br0">&#125;</span><br><span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><br><span class="co1">// Create a suped-up `defer` in Node.js.</span><br><span class="kw2">var</span> defer <span class="sy0">=</span> _.<span class="me1">runInContext</span><span class="br0">&#40;</span><span class="br0">&#123;</span> <span class="st0">'setTimeout'</span><span class="sy0">:</span> setImmediate <span class="br0">&#125;</span><span class="br0">&#41;</span>.<span class="me1">defer</span><span class="sy0">;</span></code></pre>
<hr />
</div>
<div>
<h3><a id="times"></a><code>_.<span class="me1">times</span><span class="br0">&#40;</span>n<span class="sy0">,</span> <span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#times">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13935" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.times" title="See the npm package">&#x24C3;</a></p>
<p>Invokes the iteratee function <code>n</code> times, returning an array of the results
of each invocation. The iteratee is invoked with one argument; (index).</p>
<h4>Arguments</h4>
<ol>
<li><code>n</code> <em>(number)</em>: The number of times to invoke <code>iteratee</code>.</li>
<li><code><span class="br0">&#91;</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">&#93;</span></code> <em>(Function)</em>: The function invoked per iteration.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the array of results.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">times</span><span class="br0">&#40;</span><span class="nu0">3</span><span class="sy0">,</span> String<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ['0', '1', '2']</span><br><br>&nbsp;_.<span class="me1">times</span><span class="br0">&#40;</span><span class="nu0">4</span><span class="sy0">,</span> _.<span class="me1">constant</span><span class="br0">&#40;</span><span class="kw2">true</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → [true, true, true, true]</span></code></pre>
<hr />
</div>
<div>
<h3><a id="toPath"></a><code>_.<span class="me1">toPath</span><span class="br0">&#40;</span>value<span class="br0">&#41;</span></code></h3>
<p><a href="#toPath">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13978" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.topath" title="See the npm package">&#x24C3;</a></p>
<p>Converts <code>value</code> to a property path array.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(&#42;)</em>: The value to convert.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new property path array.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">toPath</span><span class="br0">&#40;</span><span class="st0">'a.b.c'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ['a', 'b', 'c']</span><br><br>_.<span class="me1">toPath</span><span class="br0">&#40;</span><span class="st0">'a[0].b.c'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ['a', '0', 'b', 'c']</span><br><br><span class="kw2">var</span> path <span class="sy0">=</span> <span class="br0">&#91;</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="br0">&#93;</span><span class="sy0">,</span><br>&nbsp; &nbsp; newPath <span class="sy0">=</span> _.<span class="me1">toPath</span><span class="br0">&#40;</span>path<span class="br0">&#41;</span><span class="sy0">;</span><br><br>console.<span class="me1">log</span><span class="br0">&#40;</span>newPath<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → ['a', 'b', 'c']</span><br><br>console.<span class="me1">log</span><span class="br0">&#40;</span>path <span class="sy0">===</span> newPath<span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr />
</div>
<div>
<h3><a id="uniqueId"></a><code>_.<span class="me1">uniqueId</span><span class="br0">&#40;</span><span class="br0">&#91;</span>prefix<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span><span class="br0">&#41;</span></code></h3>
<p><a href="#uniqueId">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L13998" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.uniqueid" title="See the npm package">&#x24C3;</a></p>
<p>Generates a unique ID. If <code>prefix</code> is given the ID is appended to it.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">&#91;</span>prefix<span class="sy0">=</span><span class="st0">''</span><span class="br0">&#93;</span></code> <em>(string)</em>: The value to prefix the ID with.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the unique ID.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">uniqueId</span><span class="br0">&#40;</span><span class="st0">'contact_'</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → 'contact_104'</span><br><br>_.<span class="me1">uniqueId</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br><span class="co1">// → '105'</span></code></pre>
<hr />
</div>
</div>
<div>
<h2><code>Properties</code></h2>
<div>
<h3><a id="VERSION"></a><code>_.<span class="me1">VERSION</span></code></h3>
<p><a href="#VERSION">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L14645" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a></p>
<p>({string}): The semantic version number.</p>
<hr />
</div>
<div>
<h3><a id="templateSettings"></a><code>_.<span class="me1">templateSettings</span></code></h3>
<p><a href="#templateSettings">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L1524" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a> <a href="https://www.npmjs.com/package/lodash.templatesettings" title="See the npm package">&#x24C3;</a></p>
<p>({Object}): By default, the template delimiters used by lodash are like those in
embedded Ruby (ERB). Change the following template settings to use
alternative delimiters.</p>
<hr />
</div>
<div>
<h3><a id="templateSettings-escape"></a><code>_.<span class="me1">templateSettings</span>.<span class="me1">escape</span></code></h3>
<p><a href="#templateSettings-escape">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L1532" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a></p>
<p>({RegExp}): Used to detect <code>data</code> property values to be HTML-escaped.</p>
<hr />
</div>
<div>
<h3><a id="templateSettings-evaluate"></a><code>_.<span class="me1">templateSettings</span>.<span class="me1">evaluate</span></code></h3>
<p><a href="#templateSettings-evaluate">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L1540" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a></p>
<p>({RegExp}): Used to detect code to be evaluated.</p>
<hr />
</div>
<div>
<h3><a id="templateSettings-imports"></a><code>_.<span class="me1">templateSettings</span>.<span class="me1">imports</span></code></h3>
<p><a href="#templateSettings-imports">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L1564" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a></p>
<p>({Object}): Used to import variables into the compiled template.</p>
<hr />
</div>
<div>
<h3><a id="templateSettings-imports-_"></a><code>_.<span class="me1">templateSettings</span>.<span class="me1">imports</span>._</code></h3>
<p><a href="#templateSettings-imports-_">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L1572" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a></p>
<p>({Function}): A reference to the <code>lodash</code> function.</p>
<hr />
</div>
<div>
<h3><a id="templateSettings-interpolate"></a><code>_.<span class="me1">templateSettings</span>.<span class="me1">interpolate</span></code></h3>
<p><a href="#templateSettings-interpolate">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L1548" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a></p>
<p>({RegExp}): Used to detect <code>data</code> property values to inject.</p>
<hr />
</div>
<div>
<h3><a id="templateSettings-variable"></a><code>_.<span class="me1">templateSettings</span>.<span class="me1">variable</span></code></h3>
<p><a href="#templateSettings-variable">#</a> <a href="https://github.com/lodash/lodash/blob/4.5.0/lodash.js#L1556" title="View in source">&#x24C8;</a> <a href="#docs" title="Jump back to the TOC.">&#x24C9;</a></p>
<p>({string}): Used to reference the data object in the template text.</p>
<hr />
</div>
</div>
</div>
  <footer></footer>
  <script src="_js/lodash.js?@cache1"></script>
 </body>
</html>
